Browse Source

Replaced travis_wait with custom function

tempestpy_adaptions
Matthias Volk 7 years ago
parent
commit
4a4cc26d58
  1. 20
      .travis.yml
  2. 13
      travis/build-helper.sh
  3. 4
      travis/generate_travis.py

20
.travis.yml

@ -48,7 +48,7 @@ jobs:
- rm -rf build
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh Build1
- travis/build.sh Build1
before_cache:
- docker cp storm:/storm/. .
after_failure:
@ -61,7 +61,7 @@ jobs:
- rm -rf build
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh Build1
- travis/build.sh Build1
before_cache:
- docker cp storm:/storm/. .
after_failure:
@ -79,7 +79,7 @@ jobs:
install:
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh Build2
- travis/build.sh Build2
before_cache:
- docker cp storm:/storm/. .
after_failure:
@ -91,7 +91,7 @@ jobs:
install:
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh Build2
- travis/build.sh Build2
before_cache:
- docker cp storm:/storm/. .
after_failure:
@ -109,7 +109,7 @@ jobs:
install:
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh Build3
- travis/build.sh Build3
before_cache:
- docker cp storm:/storm/. .
after_failure:
@ -121,7 +121,7 @@ jobs:
install:
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh Build3
- travis/build.sh Build3
before_cache:
- docker cp storm:/storm/. .
after_failure:
@ -139,7 +139,7 @@ jobs:
install:
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh BuildLast
- travis/build.sh BuildLast
before_cache:
- docker cp storm:/storm/. .
after_failure:
@ -151,7 +151,7 @@ jobs:
install:
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh BuildLast
- travis/build.sh BuildLast
before_cache:
- docker cp storm:/storm/. .
after_failure:
@ -169,7 +169,7 @@ jobs:
install:
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh TestAll
- travis/build.sh TestAll
before_cache:
- docker cp storm:/storm/. .
after_failure:
@ -185,7 +185,7 @@ jobs:
install:
- travis/install_linux.sh
script:
- travis_wait 60 travis/build.sh TestAll
- travis/build.sh TestAll
before_cache:
- docker cp storm:/storm/. .
after_failure:

13
travis/build-helper.sh

@ -10,6 +10,14 @@ travis_fold() {
echo -en "travis_fold:${action}:${name}\r"
}
# Helper to write output every minute
function bell() {
while true; do
echo "travis_wait for it..."
sleep 60
done
}
# Helper for distinguishing between different runs
run() {
case "$1" in
@ -121,4 +129,9 @@ fi
ruby travis/mtime_cache/mtime_cache.rb -g travis/mtime_cache/globs.txt -c travis/mtime_cache/cache.json
travis_fold end mtime
# Run and print output to avoid travis timeout
bell &
bellPID=$!
run "$1"
kill $bellPID

4
travis/generate_travis.py

@ -93,7 +93,7 @@ if __name__ == "__main__":
buildConfig += " - rm -rf build\n"
buildConfig += " - travis/install_osx.sh\n"
buildConfig += " script:\n"
buildConfig += " - travis_wait 60 travis/build.sh {}\n".format(stage[1])
buildConfig += " - travis/build.sh {}\n".format(stage[1])
buildConfig += " after_failure:\n"
buildConfig += " - find build -iname '*err*.log' -type f -print -exec cat {} \;\n"
s += buildConfig
@ -114,7 +114,7 @@ if __name__ == "__main__":
buildConfig += " - rm -rf build\n"
buildConfig += " - travis/install_linux.sh\n"
buildConfig += " script:\n"
buildConfig += " - travis_wait 60 travis/build.sh {}\n".format(stage[1])
buildConfig += " - travis/build.sh {}\n".format(stage[1])
buildConfig += " before_cache:\n"
buildConfig += " - docker cp storm:/storm/. .\n"
buildConfig += " after_failure:\n"

Loading…
Cancel
Save