bpmn-js/tasks/wiredeps

26 lines
557 B
Plaintext
Raw Normal View History

#!/bin/bash
2019-04-12 14:13:28 +00:00
FEATURE_BRANCH=
# https://docs.travis-ci.com/user/environment-variables
2019-04-12 14:13:28 +00:00
if [ "$TRAVIS_TAG" != "" ] || [ "$TRAVIS_BRANCH" == "master" ]; then
exit 0;
fi
2019-04-12 14:13:28 +00:00
if [ "$TRAVIS_PULL_REQUEST_BRANCH" != "" ]; then
FEATURE_BRANCH="$TRAVIS_PULL_REQUEST_BRANCH";
else
FEATURE_BRANCH="$TRAVIS_BRANCH";
fi
2019-04-12 14:13:28 +00:00
echo "Attempting to install diagram-js@$FEATURE_BRANCH";
2019-04-12 14:13:28 +00:00
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