chore(project): do not link upstream PRs against master
This commit is contained in:
parent
ec13d8e7b8
commit
e4711a5810
|
@ -2,20 +2,24 @@
|
||||||
|
|
||||||
FEATURE_BRANCH=
|
FEATURE_BRANCH=
|
||||||
|
|
||||||
if [ "$TRAVIS_TAG" == "" ]; then
|
# https://docs.travis-ci.com/user/environment-variables
|
||||||
if [ "$TRAVIS_PULL_REQUEST_BRANCH" != "" ]; then
|
|
||||||
|
if [ "$TRAVIS_TAG" <> "" ] || [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||||
|
exit 0;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$TRAVIS_PULL_REQUEST_BRANCH" != "" ]; then
|
||||||
FEATURE_BRANCH="$TRAVIS_PULL_REQUEST_BRANCH";
|
FEATURE_BRANCH="$TRAVIS_PULL_REQUEST_BRANCH";
|
||||||
else
|
else
|
||||||
FEATURE_BRANCH="$TRAVIS_BRANCH";
|
FEATURE_BRANCH="$TRAVIS_BRANCH";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Attempting to install diagram-js@$FEATURE_BRANCH";
|
echo "Attempting to install diagram-js@$FEATURE_BRANCH";
|
||||||
|
|
||||||
npm install "diagram-js@bpmn-io/diagram-js#$FEATURE_BRANCH";
|
npm install "diagram-js@bpmn-io/diagram-js#$FEATURE_BRANCH";
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Falling back to diagram-js@develop";
|
echo "Falling back to diagram-js@develop";
|
||||||
|
|
||||||
npm install "diagram-js@bpmn-io/diagram-js#develop";
|
npm install "diagram-js@bpmn-io/diagram-js#develop";
|
||||||
fi
|
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue