1
0
Fork 0
mirror of synced 2024-12-21 21:51:08 -05:00

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

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"