Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6e6e4ee

Browse files
committed
chore(travis): skip build on deployment job when from Pull Request
1 parent 46f14fa commit 6e6e4ee

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/travis/build.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,13 @@ case "$JOB" in
4646
grunt test:travis-protractor --specs="$TARGET_SPECS"
4747
;;
4848
"deploy")
49-
grunt package
50-
grunt compress:firebaseCodeDeploy
49+
# we never deploy on Pull requests, so it's safe to skip the build here
50+
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
51+
grunt package
52+
grunt compress:firebaseCodeDeploy
53+
else
54+
echo "Skipping build because Travis has been triggered by Pull Request"
55+
fi
5156
;;
5257
*)
5358
echo "Unknown job type. Please set JOB=ci-checks, JOB=unit, JOB=deploy or JOB=e2e-*."

0 commit comments

Comments
 (0)