More advance travis timeout circumvention

This commit is contained in:
Alex Dadgar
2016-08-16 21:09:18 -07:00
parent 5953c29c72
commit a7fd23c706
3 changed files with 18 additions and 4 deletions

View File

@@ -17,9 +17,13 @@ branches:
only:
- master
before_install:
- sudo apt-get update
- sudo apt-get install -y docker-engine
- sudo apt-get install -y qemu
install:
- make travis
- make bootstrap
script:
- travis_wait make test
- make travis

View File

@@ -80,7 +80,6 @@ install: bin/nomad
install -o root -g wheel -m 0755 ./bin/nomad /usr/local/bin/nomad
travis:
@sudo apt-get install -y qemu
@sh -c "'$(PWD)/scripts/update_docker.sh'"
@sh -c "'$(PWD)/scripts/travis.sh'"
.PHONY: all bin cov integ test vet web web-push test-nodep

11
scripts/travis.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
export PING_SLEEP=30
bash -c "while true; do echo \$(date) - building ...; sleep $PING_SLEEP; done" &
PING_LOOP_PID=$!
make test
TEST_OUTPUT=$?
kill $PING_LOOP_PID
exit $TEST_OUTPUT