chore(ci): add wiredeps script
This commit is contained in:
parent
b596c6dd06
commit
e9f99b00c7
|
@ -6,6 +6,8 @@ jobs:
|
||||||
- stage: test
|
- stage: test
|
||||||
addons:
|
addons:
|
||||||
firefox: 'latest-esr'
|
firefox: 'latest-esr'
|
||||||
|
before_script:
|
||||||
|
- ./tasks/wiredeps
|
||||||
script:
|
script:
|
||||||
- COVERAGE=1 TEST_BROWSERS=Firefox,PhantomJS xvfb-run npm run all
|
- COVERAGE=1 TEST_BROWSERS=Firefox,PhantomJS xvfb-run npm run all
|
||||||
- npx codecov
|
- npx codecov
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
FEATURE_BRANCH=
|
||||||
|
|
||||||
|
if [ "$TRAVIS_TAG" == "" ]; then
|
||||||
|
if [ "$TRAVIS_PULL_REQUEST_BRANCH" != "" ]; then
|
||||||
|
FEATURE_BRANCH="$TRAVIS_PULL_REQUEST_BRANCH";
|
||||||
|
else
|
||||||
|
FEATURE_BRANCH="$TRAVIS_BRANCH";
|
||||||
|
fi
|
||||||
|
|
||||||
|
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@master";
|
||||||
|
|
||||||
|
npm install "diagram-js@bpmn-io/diagram-js#master";
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Reference in New Issue