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 commit storm 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__":
allow_failures = []
s = ""
# Initial config
s += "#\n"
@ -130,15 +132,19 @@ if __name__ == "__main__":
# Linux via Docker
for config in configs_linux:
allow_fail = ""
linux = config[0]
compiler = config[1]
build_type = config[2]
s += " # {} - {}\n".format(linux, build_type)
buildConfig = ""
buildConfig += " - stage: {}\n".format(stage[0])
allow_fail += " - stage: {}\n".format(stage[0])
buildConfig += " os: linux\n"
allow_fail += " os: linux\n"
buildConfig += " compiler: {}\n".format(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"
if stage[1] == "Build1":
buildConfig += " - rm -rf build\n"
@ -162,5 +168,11 @@ if __name__ == "__main__":
else:
assert False
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)
Loading…
Cancel
Save