bpmn-js/tasks/wiredeps

21 lines
475 B
Plaintext
Raw Normal View History

2019-04-12 14:13:28 +00:00
#! /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@develop";
2019-04-12 14:13:28 +00:00
npm install "diagram-js@bpmn-io/diagram-js#develop";
2019-04-12 14:13:28 +00:00
fi
fi