Vault/.utility/do-build.sh

14 lines
306 B
Bash
Raw Normal View History

#!/bin/bash
if [[ "$TRAVIS_REPO_SLUG" != "MilkBowl/Vault" ]]
then
echo 'Travis can only publish docs for release builds.'
return 0
fi
if [[ "$TRAVIS_PULL_REQUEST" == "true" || "$TRAVIS_BRANCH" != "master" ]]
then
mvn test
else
mvn clean deploy --settings .utility/settings.xml
fi
2014-06-24 23:00:49 +02:00
exit $?