open-nomad/scripts/travis.sh
Michael Lange 7a7c8204a7 Lock down nodejs version
The new Travis Trusty image uses node 8 (latest LTS) as the default.
Node 8 is incompatible with some modules used for the UI.
2017-12-15 10:50:06 -08:00

22 lines
389 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
make test
TEST_OUTPUT=$?
kill $PING_LOOP_PID
exit $TEST_OUTPUT