Browse Source

Travis: allow failure of LTO config

tempestpy_adaptions
Matthias Volk 7 years ago
parent
commit
9559a96fd7
  1. 16
      .travis.yml
  2. 12
      travis/generate_travis.py

16
.travis.yml

@ -360,4 +360,20 @@ jobs:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
- docker commit storm mvolk/storm:travis; - docker commit storm mvolk/storm:travis;
- docker push mvolk/storm:travis; - docker push mvolk/storm:travis;
allow_failures:
- stage: Build (1st run)
os: linux
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
- stage: Build (2nd run)
os: linux
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
- stage: Build (3rd run)
os: linux
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
- stage: Build (4th run)
os: linux
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
- stage: Test all
os: linux
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc

12
travis/generate_travis.py

@ -27,6 +27,8 @@ stages = [
if __name__ == "__main__": if __name__ == "__main__":
allow_failures = []
s = "" s = ""
# Initial config # Initial config
s += "#\n" s += "#\n"
@ -130,15 +132,19 @@ if __name__ == "__main__":
# Linux via Docker # Linux via Docker
for config in configs_linux: for config in configs_linux:
allow_fail = ""
linux = config[0] linux = config[0]
compiler = config[1] compiler = config[1]
build_type = config[2] build_type = config[2]
s += " # {} - {}\n".format(linux, build_type) s += " # {} - {}\n".format(linux, build_type)
buildConfig = "" buildConfig = ""
buildConfig += " - stage: {}\n".format(stage[0]) buildConfig += " - stage: {}\n".format(stage[0])
allow_fail += " - stage: {}\n".format(stage[0])
buildConfig += " os: linux\n" buildConfig += " os: linux\n"
allow_fail += " os: linux\n"
buildConfig += " compiler: {}\n".format(compiler) buildConfig += " compiler: {}\n".format(compiler)
buildConfig += " env: CONFIG={} LINUX={} COMPILER={}\n".format(build_type, linux, compiler) buildConfig += " env: CONFIG={} LINUX={} COMPILER={}\n".format(build_type, linux, compiler)
allow_fail += " env: CONFIG={} LINUX={} COMPILER={}\n".format(build_type, linux, compiler)
buildConfig += " install:\n" buildConfig += " install:\n"
if stage[1] == "Build1": if stage[1] == "Build1":
buildConfig += " - rm -rf build\n" buildConfig += " - rm -rf build\n"
@ -162,5 +168,11 @@ if __name__ == "__main__":
else: else:
assert False assert False
s += buildConfig s += buildConfig
if "Travis" in build_type and "Release" in build_type:
allow_failures.append(allow_fail)
if len(allow_failures) > 0:
s += " allow_failures:\n"
for fail in allow_failures:
s += fail
print(s) print(s)
Loading…
Cancel
Save