open-nomad/scripts/travis.sh
2017-07-22 21:44:53 -07:00

15 lines
293 B
Bash
Executable file

#!/usr/bin/env 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
GOTEST_FLAGS="-parallel=2 -v" make test
TEST_OUTPUT=$?
kill $PING_LOOP_PID
exit $TEST_OUTPUT