Browse Source

Added 5th build stage

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

51
.travis.yml

@ -243,6 +243,57 @@ jobs:
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
###
# Stage: Build (5th run)
###
# osx
- stage: Build (5th run)
os: osx
compiler: clang
env: CONFIG=DefaultDebug COMPILER=clang-4.0 STL=libc++
install:
- travis/install_osx.sh
script:
- travis/build.sh BuildLast
after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
- stage: Build (5th run)
os: osx
compiler: clang
env: CONFIG=DefaultRelease COMPILER=clang-4.0 STL=libc++
install:
- travis/install_osx.sh
script:
- travis/build.sh BuildLast
after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
# ubuntu-16.10
- stage: Build (5th run)
os: linux
compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-16.10 COMPILER=gcc-6
install:
- travis/install_linux.sh
script:
- travis/build.sh BuildLast
before_cache:
- docker cp storm:/storm/. .
after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
- stage: Build (5th run)
os: linux
compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-16.10 COMPILER=gcc-6
install:
- travis/install_linux.sh
script:
- travis/build.sh BuildLast
before_cache:
- docker cp storm:/storm/. .
after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \;
### ###
# Stage: Test all # Stage: Test all
### ###

4
travis/build-helper.sh

@ -13,7 +13,7 @@ travis_fold() {
# Helper for distinguishing between different runs # Helper for distinguishing between different runs
run() { run() {
case "$1" in case "$1" in
Build1 | Build2 | Build3 | Build4)
Build*)
if [[ "$1" == "Build1" ]] if [[ "$1" == "Build1" ]]
then then
# CMake # CMake
@ -38,7 +38,7 @@ run() {
make -j$N_JOBS make -j$N_JOBS
travis_fold end make travis_fold end make
# Set skip-file # Set skip-file
if [[ "$1" != "Build4" ]]
if [[ "$1" != "BuildLast" ]]
then then
touch skip.txt touch skip.txt
else else

4
travis/build.sh

@ -13,7 +13,7 @@ EXITCODE=42
if [ -f build/skip.txt ] if [ -f build/skip.txt ]
then then
# Remove flag s.t. tests will be executed # Remove flag s.t. tests will be executed
if [[ "$1" == "Build4" ]]
if [[ "$1" == "BuildLast" ]]
then then
rm build/skip.txt rm build/skip.txt
fi fi
@ -63,7 +63,7 @@ osx)
exit 1 exit 1
esac esac
if [[ $EXITCODE == 124 ]] && [[ "$1" == Build* ]] && [[ "$1" != "Build4" ]]
if [[ $EXITCODE == 124 ]] && [[ "$1" == Build* ]] && [[ "$1" != "BuildLast" ]]
then then
exit 0 exit 0
else else

1
travis/generate_travis.py

@ -24,6 +24,7 @@ stages = [
("Build (2nd run)", "Build2"), ("Build (2nd run)", "Build2"),
("Build (3rd run)", "Build3"), ("Build (3rd run)", "Build3"),
("Build (4th run)", "Build4"), ("Build (4th run)", "Build4"),
("Build (5th run)", "BuildLast"),
("Test all", "TestAll"), ("Test all", "TestAll"),
] ]

Loading…
Cancel
Save