mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
More advance travis timeout circumvention
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
11
scripts/travis.sh
Executable 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
|
||||
Reference in New Issue
Block a user