mirror of
1
0
Fork 0

Travis: add guard to test_travis

This commit is contained in:
Benjamin Chrétien 2016-01-17 13:10:58 +09:00
parent 80c2d83855
commit 9670a7b6fa
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ set -e
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# Prevent execution outside of Travis CI builds
if [[ "${TRAVIS}" != true || "${CI}" != true ]]; then
echo "Error: `basename "$0"` should only be used on Travis"
exit 2
fi
# Travis runs do not rely on Vagrant
export USE_VAGRANT=false
export DOTBOT_EXEC="${BASEDIR}/bin/dotbot"