Skip to content

Commit f25988c

Browse files
committed
Travis: Only deploy documentation on tags
1 parent f725ac5 commit f25988c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ before_install:
6262
- export npm_config_clang=1
6363
- export JOBS=4
6464

65-
- if [ -z "$TRAVIS_TAG" ] && [ $EXTENDED_TESTING == "true" ]; then
65+
- if [ -z "$TRAVIS_TAG" ] && [ "$EXTENDED_TESTING" == "true" ]; then
6666
export GYP_DEFINES="coverage=1 use_obsolete_asm=true";
6767
export CC=/usr/bin/gcc-4.9;
6868
export CXX=/usr/bin/g++-4.9;
@@ -88,7 +88,7 @@ before_script:
8888
- git config --global user.email johndoe@example.com
8989

9090
script:
91-
if [ -z "$TRAVIS_TAG" ] && [ $EXTENDED_TESTING == "true" ]; then
91+
if [ -z "$TRAVIS_TAG" ] && [ "$EXTENDED_TESTING" == "true" ]; then
9292
travis_retry npm test && npm run cov && npm run coveralls;
9393
else
9494
travis_retry npm test;
@@ -103,7 +103,7 @@ after_success:
103103
node-pre-gyp publish --target_arch=$TARGET_ARCH;
104104
fi
105105

106-
- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_PULL_REQUEST == "false" ] && [ $DEPLOY_DOCUMENTATION == "true" ]; then
106+
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -n "$TRAVIS_TAG" ] && [ "$DEPLOY_DOCUMENTATION" == "true" ]; then
107107
.travis/deploy-docs.sh;
108108
fi
109109

0 commit comments

Comments
 (0)