Skip to content

Commit

Permalink
print running hint in travis log (#175)
Browse files Browse the repository at this point in the history
* "running script" hint

* Combine duplicate prints
  • Loading branch information
tooomm authored Nov 3, 2017
1 parent 21f66c6 commit f95b4bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ SOURCE_BRANCH="master"
TARGET_BRANCH="files"

function doCompile {
echo "Running script..."
python main.py dumpXML=True
}

# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then
echo "Skipping deploy; just doing a build."
# Run our compile script and let user know in logs
doCompile
exit 0
fi
Expand All @@ -30,7 +32,7 @@ cd ..
# Clean out existing contents
rm -rf out/**/* || exit 0

# Run our compile script
# Run our compile script and let user know in logs
doCompile

echo TRAVIS_PULL_REQUEST ${TRAVIS_PULL_REQUEST}
Expand Down

0 comments on commit f95b4bf

Please sign in to comment.