Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Commit c3088f2

Browse files
committed
Added condition to trigger deploying only after master build
1 parent e730d4b commit c3088f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ before_script:
1313
script:
1414
- npm run-script build4prod
1515
- npm run-script test4ci
16-
- ngh --repo=https://[email protected]/oasp/oasp4js-ng-project-seed.git --name="oasp4js-build" --email=GH_EMAIL
16+
- export BRANCH_NAME=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
17+
- if [ "$BRANCH_NAME" == "master" ]; then
18+
ngh --repo=https://[email protected]/oasp/oasp4js-ng-project-seed.git --name="oasp4js-build" --email=GH_EMAIL;
19+
fi
1720
after_success:
1821
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)