Merge pull request #4418 from hashicorp/travis-script

Add script for running tests in Travis
This commit is contained in:
James Nugent 2015-12-22 11:27:22 -05:00
commit 041c8a1ce5
1 changed files with 14 additions and 0 deletions

14
scripts/travis.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# Consistent output so travis does not think we're dead during long running
# tests.
export PING_SLEEP=30
bash -c "while true; do echo \$(date) - building ...; sleep $PING_SLEEP; done" &
PING_LOOP_PID=$!
make testacc
TEST_OUTPUT=$?
kill $PING_LOOP_PID
exit $TEST_OUTPUT