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

Commit d289e04

Browse files
committed
Add missing "$" for TRAVIS_PULL_REQUEST
This fixes a not so intelligent mistake I made where I left off a $ making bash not interpret the variable as a variable so the condition always ended up evaluating to false. Also added some extra debug statement, just for fun.
1 parent 0bbddb3 commit d289e04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

travis-build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
./grailsw test-app --non-interactive
55
./grailsw package-plugin --non-interactive
66
./grailsw doc --pdf --non-interactive
7-
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_REPO_SLUG == 'gpc/grails-mail' && TRAVIS_PULL_REQUEST == 'false' ]]; then
7+
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_REPO_SLUG == 'gpc/grails-mail' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
88
git config --global user.name "$GIT_NAME"
99
git config --global user.email "$GIT_EMAIL"
1010
git config --global credential.helper "store --file=~/.git-credentials"
@@ -21,4 +21,7 @@ if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_REPO_SLUG == 'gpc/grails-mail' && TR
2121
./grailsw publish-plugin --no-scm --allow-overwrite --non-interactive
2222
else
2323
echo "Not on master branch, so not publishing"
24+
echo "TRAVIS_BRANCH: $TRAVIS_BRANCH"
25+
echo "TRAVIS_REPO_SLUG: $TRAVIS_REPO_SLUG"
26+
echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST"
2427
fi

0 commit comments

Comments
 (0)