Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit a18c9a4

Browse files
committed
[FIX] TRAVIS_PULL_REQUEST test
"TRAVIS_PULL_REQUEST" is never "true" It's "false" or a int !
1 parent 532360b commit a18c9a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis/after_success.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Inspired by http://sleepycoders.blogspot.se/2013/03/sharing-travis-ci-generated-files.html
22

3-
[ "$TRAVIS_PULL_REQUEST" == "true" ] || [ "$TRAVIS_BRANCH" != "master" ] && echo -e "\n" && exit 0
3+
[ "$TRAVIS_PULL_REQUEST" != "false" ] || [ "$TRAVIS_BRANCH" != "master" ] && echo -e "\n" && exit 0
44

55
echo -e "\n>>> Current Repo:$REPO --- Travis Branch:$TRAVIS_BRANCH\n"
66

@@ -28,4 +28,4 @@ git commit -m "Travis commit : build $TRAVIS_BUILD_NUMBER"
2828
echo -e ">>> Push result :"
2929
git push -fq origin gh-pages
3030

31-
echo -e "All done.\n"
31+
echo -e "All done.\n"

.travis/before_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
[ "$TRAVIS_PULL_REQUEST" == "true" ] || [ "$TRAVIS_BRANCH" != "master" ] && echo -e "\n" && exit 0
2+
[ "$TRAVIS_PULL_REQUEST" != "false" ] || [ "$TRAVIS_BRANCH" != "master" ] && echo -e "\n" && exit 0
33

44
#
55
# Authentication

0 commit comments

Comments
 (0)