open-nomad/scripts/travis.sh
Michael Schurter 0ac43a7622 Skip QEMU graceful shutdown test except on Travis
Hopefully we can reuse the SkipSlow helper elsewhere.
2018-01-31 15:47:26 -08:00

22 lines
407 B
Bash
Executable file

#!/bin/bash
set -e
export PING_SLEEP=60
bash -c "while true; do echo \$(date) - building ...; sleep $PING_SLEEP; done" &
PING_LOOP_PID=$!
trap 'kill ${PING_LOOP_PID}' EXIT HUP INT QUIT TERM
if [ "$RUN_STATIC_CHECKS" ]; then
make check
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
make checkscripts
fi
fi
NOMAD_SLOW_TEST=1 make test
TEST_OUTPUT=$?
kill $PING_LOOP_PID
exit $TEST_OUTPUT