open-nomad/scripts/travis.sh

22 lines
402 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2016-08-19 23:32:41 +00:00
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
2016-08-17 22:18:37 +00:00
2017-10-24 17:49:53 +00:00
if [[ "$RUN_STATIC_CHECKS" ]]; then
make check
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make checkscripts
fi
fi
2017-07-23 05:25:20 +00:00
make test
TEST_OUTPUT=$?
kill $PING_LOOP_PID
exit $TEST_OUTPUT