ci: remove Travis CI config
This commit is contained in:
parent
35c8ad53c8
commit
b8e3071670
|
@ -29,7 +29,7 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Wire dependencies
|
||||
run: ./tasks/wiredeps_github
|
||||
run: ./tasks/wiredeps
|
||||
- name: Build
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
env:
|
||||
|
|
|
@ -9,6 +9,5 @@ test/*
|
|||
!test/matchers
|
||||
.eslintignore
|
||||
.eslintrc
|
||||
.travis.yml
|
||||
rollup.config.js
|
||||
coverage
|
||||
|
|
31
.travis.yml
31
.travis.yml
|
@ -1,31 +0,0 @@
|
|||
language: node_js
|
||||
node_js: '10'
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: test
|
||||
addons:
|
||||
firefox: 'latest-esr'
|
||||
before_script:
|
||||
- ./tasks/wiredeps
|
||||
script:
|
||||
- TEST_BROWSERS=Firefox,PhantomJS,ChromeHeadless xvfb-run npm run all
|
||||
- stage: update integration test
|
||||
script: './tasks/stages/update-integration-test'
|
||||
- stage: update examples
|
||||
script: './tasks/stages/update-examples'
|
||||
- stage: update demo
|
||||
script: './tasks/stages/update-demo'
|
||||
- stage: update website
|
||||
script: './tasks/stages/update-website'
|
||||
|
||||
stages:
|
||||
- test
|
||||
- name: update integration test
|
||||
if: tag =~ ^v\d
|
||||
- name: update examples
|
||||
if: tag =~ ^v\d+\.\d+\.\d+$
|
||||
- name: update demo
|
||||
if: tag =~ ^v\d+\.\d+\.\d+$
|
||||
- name: update website
|
||||
if: tag =~ ^v\d+\.\d+\.\d+$
|
|
@ -1,6 +1,6 @@
|
|||
# bpmn-js - BPMN 2.0 for the web
|
||||
|
||||
[![Build Status](https://travis-ci.com/bpmn-io/bpmn-js.svg?branch=develop)](https://travis-ci.com/bpmn-io/bpmn-js)
|
||||
[![Build Status](https://github.com/bpmn-io/bpmn-js/workflows/CI/badge.svg)](https://github.com/bpmn-io/bpmn-js/actions?query=workflow%3ACI)
|
||||
|
||||
View and edit BPMN 2.0 diagrams in the browser.
|
||||
|
||||
|
|
|
@ -2,17 +2,14 @@
|
|||
|
||||
FEATURE_BRANCH=
|
||||
|
||||
# https://docs.travis-ci.com/user/environment-variables
|
||||
# https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
|
||||
|
||||
if [ "$TRAVIS_TAG" != "" ] || [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
# skip default branch and tags
|
||||
if [[ $GITHUB_REF =~ ^refs/heads/master$ ]] || [[ $GITHUB_REF =~ ^refs/tags/ ]]; then
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
if [ "$TRAVIS_PULL_REQUEST_BRANCH" != "" ]; then
|
||||
FEATURE_BRANCH="$TRAVIS_PULL_REQUEST_BRANCH";
|
||||
else
|
||||
FEATURE_BRANCH="$TRAVIS_BRANCH";
|
||||
fi
|
||||
FEATURE_BRANCH=$(echo "$GITHUB_REF" | cut -d"/" -f3)
|
||||
|
||||
echo "Attempting to install diagram-js@$FEATURE_BRANCH";
|
||||
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
FEATURE_BRANCH=
|
||||
|
||||
# https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
|
||||
|
||||
# skip default branch and tags
|
||||
if [[ $GITHUB_REF =~ ^refs/heads/master$ ]] || [[ $GITHUB_REF =~ ^refs/tags/ ]]; then
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
FEATURE_BRANCH=$(echo "$GITHUB_REF" | cut -d"/" -f3)
|
||||
|
||||
echo "Attempting to install diagram-js@$FEATURE_BRANCH";
|
||||
|
||||
npm install "diagram-js@bpmn-io/diagram-js#$FEATURE_BRANCH";
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Falling back to diagram-js@develop";
|
||||
|
||||
npm install "diagram-js@bpmn-io/diagram-js#develop";
|
||||
fi
|
Loading…
Reference in New Issue