Browse Source

Travis: updated scripts and incorporated doxygen deployment

main
Matthias Volk 6 years ago
parent
commit
9b74bc393f
  1. 261
      .travis.yml
  2. 9
      travis/build.sh
  3. 59
      travis/build_helper.sh
  4. 13
      travis/deploy_docker.sh
  5. 47
      travis/deploy_storm.sh
  6. 151
      travis/generate_travis.py
  7. 3
      travis/mtime_cache/globs.txt
  8. 5
      travis/skip_test.sh

261
.travis.yml

@ -6,7 +6,6 @@ branches:
- master - master
- stable - stable
sudo: required sudo: required
dist: trusty
language: cpp language: cpp
git: git:
@ -39,46 +38,48 @@ jobs:
### ###
# Stage: Build Carl # Stage: Build Carl
### ###
# ubuntu-19.04 - DefaultDebugTravis # ubuntu-19.04 - DefaultDebugTravis
- stage: Build Carl - stage: Build Carl
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebugTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultDebugTravis TASK=TestDocker LINUX=ubuntu-19.04 COMPILER=gcc
install:
- travis/install_linux.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build_carl.sh - travis/build_carl.sh
after_success: before_cache:
- travis/deploy_carl.sh - docker cp carl:/opt/carl/. .
deploy:
- provider: script
skip_cleanup: true
script: bash travis/deploy_docker.sh carl
# ubuntu-19.04 - DefaultReleaseTravis # ubuntu-19.04 - DefaultReleaseTravis
- stage: Build Carl - stage: Build Carl
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultReleaseTravis TASK=TestDockerDoxygen LINUX=ubuntu-19.04 COMPILER=gcc
install:
- travis/install_linux.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build_carl.sh - travis/build_carl.sh
after_success: before_cache:
- travis/deploy_carl.sh - docker cp carl:/opt/carl/. .
deploy:
- provider: script
skip_cleanup: true
script: bash travis/deploy_docker.sh carl
### ###
# Stage: Build (1st run) # Stage: Build (1st run)
### ###
# ubuntu-18.04 - DefaultDebug # ubuntu-18.04 - DefaultDebug
- stage: Build (1st run) - stage: Build (1st run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- rm -rf build - rm -rf build
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -91,10 +92,10 @@ jobs:
- stage: Build (1st run) - stage: Build (1st run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- rm -rf build - rm -rf build
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -107,10 +108,10 @@ jobs:
- stage: Build (1st run) - stage: Build (1st run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- rm -rf build - rm -rf build
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -123,10 +124,10 @@ jobs:
- stage: Build (1st run) - stage: Build (1st run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- rm -rf build - rm -rf build
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -139,10 +140,10 @@ jobs:
- stage: Build (1st run) - stage: Build (1st run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- rm -rf build - rm -rf build
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -155,10 +156,10 @@ jobs:
- stage: Build (1st run) - stage: Build (1st run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- rm -rf build - rm -rf build
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -171,10 +172,10 @@ jobs:
- stage: Build (1st run) - stage: Build (1st run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebugTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultDebugTravis TASK=TestDocker LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- rm -rf build - rm -rf build
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -187,10 +188,10 @@ jobs:
- stage: Build (1st run) - stage: Build (1st run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultReleaseTravis TASK=TestDockerDoxygen LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- rm -rf build - rm -rf build
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -203,14 +204,13 @@ jobs:
### ###
# Stage: Build (2nd run) # Stage: Build (2nd run)
### ###
# ubuntu-18.04 - DefaultDebug # ubuntu-18.04 - DefaultDebug
- stage: Build (2nd run) - stage: Build (2nd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -223,9 +223,9 @@ jobs:
- stage: Build (2nd run) - stage: Build (2nd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -238,9 +238,9 @@ jobs:
- stage: Build (2nd run) - stage: Build (2nd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -253,9 +253,9 @@ jobs:
- stage: Build (2nd run) - stage: Build (2nd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -268,9 +268,9 @@ jobs:
- stage: Build (2nd run) - stage: Build (2nd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -283,9 +283,9 @@ jobs:
- stage: Build (2nd run) - stage: Build (2nd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -298,9 +298,9 @@ jobs:
- stage: Build (2nd run) - stage: Build (2nd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebugTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultDebugTravis TASK=TestDocker LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -313,9 +313,9 @@ jobs:
- stage: Build (2nd run) - stage: Build (2nd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultReleaseTravis TASK=TestDockerDoxygen LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -328,14 +328,13 @@ jobs:
### ###
# Stage: Build (3rd run) # Stage: Build (3rd run)
### ###
# ubuntu-18.04 - DefaultDebug # ubuntu-18.04 - DefaultDebug
- stage: Build (3rd run) - stage: Build (3rd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -348,9 +347,9 @@ jobs:
- stage: Build (3rd run) - stage: Build (3rd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -363,9 +362,9 @@ jobs:
- stage: Build (3rd run) - stage: Build (3rd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -378,9 +377,9 @@ jobs:
- stage: Build (3rd run) - stage: Build (3rd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -393,9 +392,9 @@ jobs:
- stage: Build (3rd run) - stage: Build (3rd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -408,9 +407,9 @@ jobs:
- stage: Build (3rd run) - stage: Build (3rd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -423,9 +422,9 @@ jobs:
- stage: Build (3rd run) - stage: Build (3rd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebugTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultDebugTravis TASK=TestDocker LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -438,9 +437,9 @@ jobs:
- stage: Build (3rd run) - stage: Build (3rd run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultReleaseTravis TASK=TestDockerDoxygen LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -453,14 +452,13 @@ jobs:
### ###
# Stage: Build (4th run) # Stage: Build (4th run)
### ###
# ubuntu-18.04 - DefaultDebug # ubuntu-18.04 - DefaultDebug
- stage: Build (4th run) - stage: Build (4th run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -473,9 +471,9 @@ jobs:
- stage: Build (4th run) - stage: Build (4th run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -488,9 +486,9 @@ jobs:
- stage: Build (4th run) - stage: Build (4th run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -503,9 +501,9 @@ jobs:
- stage: Build (4th run) - stage: Build (4th run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -518,9 +516,9 @@ jobs:
- stage: Build (4th run) - stage: Build (4th run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -533,9 +531,9 @@ jobs:
- stage: Build (4th run) - stage: Build (4th run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -548,9 +546,9 @@ jobs:
- stage: Build (4th run) - stage: Build (4th run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebugTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultDebugTravis TASK=TestDocker LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -563,9 +561,9 @@ jobs:
- stage: Build (4th run) - stage: Build (4th run)
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultReleaseTravis TASK=TestDockerDoxygen LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
@ -576,147 +574,142 @@ jobs:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
### ###
# Stage: Test all # Stage: Tasks
### ###
# ubuntu-18.04 - DefaultDebug # ubuntu-18.04 - DefaultDebug
- stage: Test all - stage: Tasks
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build.sh TestAll - travis/build.sh Tasks
before_cache: before_cache:
- docker cp storm:/opt/storm/. . - docker cp storm:/opt/storm/. .
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
# ubuntu-18.04 - DefaultRelease # ubuntu-18.04 - DefaultRelease
- stage: Test all - stage: Tasks
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.04 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build.sh TestAll - travis/build.sh Tasks
before_cache: before_cache:
- docker cp storm:/opt/storm/. . - docker cp storm:/opt/storm/. .
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
# debian-9 - DefaultDebug # debian-9 - DefaultDebug
- stage: Test all - stage: Tasks
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build.sh TestAll - travis/build.sh Tasks
before_cache: before_cache:
- docker cp storm:/opt/storm/. . - docker cp storm:/opt/storm/. .
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
# debian-9 - DefaultRelease # debian-9 - DefaultRelease
- stage: Test all - stage: Tasks
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=debian-9 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build.sh TestAll - travis/build.sh Tasks
before_cache: before_cache:
- docker cp storm:/opt/storm/. . - docker cp storm:/opt/storm/. .
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
# ubuntu-18.10 - DefaultDebug # ubuntu-18.10 - DefaultDebug
- stage: Test all - stage: Tasks
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebug LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultDebug TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build.sh TestAll - travis/build.sh Tasks
before_cache: before_cache:
- docker cp storm:/opt/storm/. . - docker cp storm:/opt/storm/. .
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
# ubuntu-18.10 - DefaultRelease # ubuntu-18.10 - DefaultRelease
- stage: Test all - stage: Tasks
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultRelease LINUX=ubuntu-18.10 COMPILER=gcc env: CONFIG=DefaultRelease TASK=Test LINUX=ubuntu-18.10 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build.sh TestAll - travis/build.sh Tasks
before_cache: before_cache:
- docker cp storm:/opt/storm/. . - docker cp storm:/opt/storm/. .
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
# ubuntu-19.04 - DefaultDebugTravis # ubuntu-19.04 - DefaultDebugTravis
- stage: Test all - stage: Tasks
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultDebugTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultDebugTravis TASK=TestDocker LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build.sh TestAll - travis/build.sh Tasks
before_cache: before_cache:
- docker cp storm:/opt/storm/. . - docker cp storm:/opt/storm/. .
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
after_success: deploy:
- travis/deploy_storm.sh - provider: script
skip_cleanup: true
script: bash travis/deploy_docker.sh storm
# ubuntu-19.04 - DefaultReleaseTravis # ubuntu-19.04 - DefaultReleaseTravis
- stage: Test all - stage: Tasks
os: linux os: linux
compiler: gcc compiler: gcc
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc env: CONFIG=DefaultReleaseTravis TASK=TestDockerDoxygen LINUX=ubuntu-19.04 COMPILER=gcc
install: install:
- travis/install_linux.sh - travis/skip_test.sh
before_script: before_script:
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode
script: script:
- travis/build.sh TestAll - travis/build.sh Tasks
before_cache: before_cache:
- docker cp storm:/opt/storm/. . - docker cp storm:/opt/storm/. .
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
after_success: deploy:
- travis/deploy_storm.sh - provider: script
allow_failures: skip_cleanup: true
- stage: Build (1st run) script: bash travis/deploy_docker.sh storm
os: linux - provider: pages
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc skip_cleanup: true
- stage: Build (2nd run) github_token: $GITHUB_TOKEN
os: linux local_dir: build/doc/html/
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc repo: moves-rwth/storm-doc
- stage: Build (3rd run) target_branch: master
os: linux on:
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc branch: master
- stage: Build (4th run)
os: linux
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc
- stage: Test all
os: linux
env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-19.04 COMPILER=gcc

9
travis/build.sh

@ -37,6 +37,11 @@ linux)
docker run -d -it --name storm --privileged movesrwth/storm-basesystem:$LINUX docker run -d -it --name storm --privileged movesrwth/storm-basesystem:$LINUX
;; ;;
esac esac
# Install doxygen if necessary
if [[ "$TASK" == *Doxygen* ]]
then
docker exec storm apt-get install -qq -y doxygen
fi
# Copy local content into container # Copy local content into container
docker exec storm mkdir /opt/storm docker exec storm mkdir /opt/storm
docker cp . storm:/opt/storm docker cp . storm:/opt/storm
@ -45,6 +50,7 @@ linux)
# Execute main process # Execute main process
docker exec storm bash -c " docker exec storm bash -c "
export CONFIG=$CONFIG; export CONFIG=$CONFIG;
export TASK=$TASK;
export COMPILER=$COMPILER; export COMPILER=$COMPILER;
export N_JOBS=$N_JOBS; export N_JOBS=$N_JOBS;
export STLARG=; export STLARG=;
@ -57,7 +63,8 @@ linux)
osx) osx)
# Mac OSX # Mac OSX
STLARG="-stdlib=libc++" STLARG="-stdlib=libc++"
export CONFIG=$CONFIG export CONFIG
export TASK
export COMPILER export COMPILER
export N_JOBS export N_JOBS
export STLARG export STLARG

59
travis/build_helper.sh

@ -53,27 +53,44 @@ run() {
fi fi
;; ;;
TestAll) Tasks)
# Test all # Perform tasks
travis_fold start test_all if [[ "$TASK" == *Test* ]]
cd build then
ctest test --output-on-failure # Test all
travis_fold end test_all travis_fold start test_all
cd build
# Check correctness of build types ctest test --output-on-failure
echo "Checking correctness of build types" travis_fold end test_all
case "$CONFIG" in # Check correctness of build types
DefaultDebug*) echo "Checking correctness of build types"
./bin/storm --version | grep "with flags .* -g" || (echo "Error: Missing flag '-g' for debug build." && return 1) case "$CONFIG" in
;; DefaultDebug*)
DefaultRelease*) ./bin/storm --version | grep "with flags .* -g" || (echo "Error: Missing flag '-g' for debug build." && return 1)
./bin/storm --version | grep "with flags .* -O3" || (echo "Error: Missing flag '-O3' for release build." && return 1) ;;
./bin/storm --version | grep "with flags .* -DNDEBUG" || (echo "Error: Missing flag '-DNDEBUG' for release build." && return 1) DefaultRelease*)
;; ./bin/storm --version | grep "with flags .* -O3" || (echo "Error: Missing flag '-O3' for release build." && return 1)
*) ./bin/storm --version | grep "with flags .* -DNDEBUG" || (echo "Error: Missing flag '-DNDEBUG' for release build." && return 1)
echo "Unrecognized value of CONFIG: $CONFIG"; exit 1 ;;
;; *)
esac echo "Unrecognized value of CONFIG: $CONFIG"
exit 1
esac
cd ..
fi
if [[ "$TASK" == *Doxygen* ]]
then
# Generate doxygen doc
travis_fold start make_doc
cd build
make -j$N_JOBS doc
# Disable jekyll as otherwise files with starting underscore are not published
echo "" > doc/html/.nojekyll
cd ..
travis_fold end make_doc
fi
;; ;;
*) *)

13
travis/deploy_carl.sh → travis/deploy_docker.sh

@ -15,18 +15,20 @@ if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
exit 0; exit 0;
fi fi
echo "Deploying $1 to Dockerhub"
case $OS in case $OS in
linux) linux)
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# Deploy as debug/release # Deploy as debug/release
case "$CONFIG" in case "$CONFIG" in
*DebugTravis) *DebugTravis)
docker commit carl movesrwth/carl:travis-debug docker commit $1 movesrwth/$1:travis-debug
docker push movesrwth/carl:travis-debug docker push movesrwth/$1:travis-debug
;; ;;
*ReleaseTravis) *ReleaseTravis)
docker commit carl movesrwth/carl:travis docker commit $1 movesrwth/$1:travis
docker push movesrwth/carl:travis docker push movesrwth/$1:travis
;; ;;
*) *)
echo "Unrecognized value of CONFIG: $CONFIG"; exit 1 echo "Unrecognized value of CONFIG: $CONFIG"; exit 1
@ -35,7 +37,7 @@ linux)
;; ;;
osx) osx)
echo "Building carl on Mac OSX not used." echo "Docker deployment on Mac OSX not used."
exit 1 exit 1
;; ;;
@ -44,4 +46,3 @@ osx)
echo "Unsupported OS: $OS" echo "Unsupported OS: $OS"
exit 1 exit 1
esac esac

47
travis/deploy_storm.sh

@ -1,47 +0,0 @@
#!/bin/bash -x
set -e
OS=$TRAVIS_OS_NAME
# Do not deploy if credentials are not given
if [ "${TRAVIS_SECURE_ENV_VARS}" == "false" ]; then
echo "WARNING: Not deploying as no credentials are given."
exit 0;
fi
# Do not deploy for pull requests
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
exit 0;
fi
case $OS in
linux)
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# Deploy as debug/release
case "$CONFIG" in
*DebugTravis)
docker commit storm movesrwth/storm:travis-debug
docker push movesrwth/storm:travis-debug
;;
*ReleaseTravis)
docker commit storm movesrwth/storm:travis
docker push movesrwth/storm:travis
;;
*)
echo "Unrecognized value of CONFIG: $CONFIG"; exit 1
;;
esac
;;
osx)
echo "Building Storm on Mac OSX not used."
exit 1
;;
*)
# Unknown OS
echo "Unsupported OS: $OS"
exit 1
esac

151
travis/generate_travis.py

@ -1,38 +1,37 @@
# Generate .travis.yml automatically # Generate .travis.yml automatically
# Configuration for Linux # Configuration for Linux
configs_linux = [ configs = [
# OS, compiler, build type # OS, OS version, compiler, build type, task
("ubuntu-18.04", "gcc", "DefaultDebug"), ("ubuntu", "18.04", "gcc", "DefaultDebug", "Test"),
("ubuntu-18.04", "gcc", "DefaultRelease"), ("ubuntu", "18.04", "gcc", "DefaultRelease", "Test"),
("debian-9", "gcc", "DefaultDebug"), ("debian", "9", "gcc", "DefaultDebug", "Test"),
("debian-9", "gcc", "DefaultRelease"), ("debian", "9", "gcc", "DefaultRelease", "Test"),
("ubuntu-18.10", "gcc", "DefaultDebug"), ("ubuntu", "18.10", "gcc", "DefaultDebug", "Test"),
("ubuntu-18.10", "gcc", "DefaultRelease"), ("ubuntu", "18.10", "gcc", "DefaultRelease", "Test"),
("ubuntu-19.04", "gcc", "DefaultDebugTravis"), ("ubuntu", "19.04", "gcc", "DefaultDebugTravis", "TestDocker"),
("ubuntu-19.04", "gcc", "DefaultReleaseTravis"), ("ubuntu", "19.04", "gcc", "DefaultReleaseTravis", "TestDockerDoxygen"),
] # ("osx", "xcode9.3", "clang", "DefaultDebug", "Test"),
# ("osx", "xcode9.3", "clang", "DefaultRelease", "Test"),
# Configurations for Mac
configs_mac = [
# OS, compiler, build type
# ("osx", "clang", "DefaultDebug"),
# ("osx", "clang", "DefaultRelease"),
] ]
# Stages in travis # Stages in travis
stages = [ build_stages = [
("Build (1st run)", "Build1"), ("Build (1st run)", "Build1"),
("Build (2nd run)", "Build2"), ("Build (2nd run)", "Build2"),
("Build (3rd run)", "Build3"), ("Build (3rd run)", "Build3"),
("Build (4th run)", "BuildLast"), ("Build (4th run)", "BuildLast"),
("Test all", "TestAll"), ("Tasks", "Tasks"),
] ]
def get_env_string(os, os_version, compiler, build_type, task):
if os == "osx":
return "CONFIG={} TASK={} COMPILER={} STL=libc++\n".format(build_type, task, compiler)
else:
return "CONFIG={} TASK={} LINUX={} COMPILER={}\n".format(build_type, task, "{}-{}".format(os, os_version), compiler)
if __name__ == "__main__":
allow_failures = []
if __name__ == "__main__":
s = "" s = ""
# Initial config # Initial config
s += "#\n" s += "#\n"
@ -43,7 +42,6 @@ if __name__ == "__main__":
s += " - master\n" s += " - master\n"
s += " - stable\n" s += " - stable\n"
s += "sudo: required\n" s += "sudo: required\n"
s += "dist: trusty\n"
s += "language: cpp\n" s += "language: cpp\n"
s += "\n" s += "\n"
s += "git:\n" s += "git:\n"
@ -79,97 +77,80 @@ if __name__ == "__main__":
s += " ###\n" s += " ###\n"
s += " # Stage: Build Carl\n" s += " # Stage: Build Carl\n"
s += " ###\n" s += " ###\n"
s += "\n" for config in configs:
for config in configs_linux: os, os_version, compiler, build_type, task = config
linux = config[0] os_type = "osx" if os == "osx" else "linux"
compiler = config[1]
build_type = config[2]
if "Travis" in build_type: if "Travis" in build_type:
s += " # {} - {}\n".format(linux, build_type) s += " # {}-{} - {}\n".format(os, os_version, build_type)
buildConfig = "" buildConfig = ""
buildConfig += " - stage: Build Carl\n" buildConfig += " - stage: Build Carl\n"
buildConfig += " os: linux\n" buildConfig += " os: {}\n".format(os_type)
buildConfig += " compiler: {}\n".format(compiler) buildConfig += " compiler: {}\n".format(compiler)
buildConfig += " env: CONFIG={} LINUX={} COMPILER={}\n".format(build_type, linux, compiler) buildConfig += " env: {}".format(get_env_string(os, os_version, compiler, build_type, task))
buildConfig += " install:\n"
buildConfig += " - travis/install_linux.sh\n"
buildConfig += " before_script:\n" buildConfig += " before_script:\n"
buildConfig += ' - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode\n' buildConfig += ' - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode\n'
buildConfig += " script:\n" buildConfig += " script:\n"
buildConfig += " - travis/build_carl.sh\n" buildConfig += " - travis/build_carl.sh\n"
buildConfig += " before_cache:\n"
buildConfig += " - docker cp carl:/opt/carl/. .\n"
# Upload to DockerHub # Upload to DockerHub
buildConfig += " after_success:\n" buildConfig += " deploy:\n"
buildConfig += " - travis/deploy_carl.sh\n" buildConfig += " - provider: script\n"
buildConfig += " skip_cleanup: true\n"
buildConfig += " script: bash travis/deploy_docker.sh carl\n"
s += buildConfig s += buildConfig
# Generate all configurations # Generate all build configurations
for stage in stages: for stage in build_stages:
s += "\n" s += "\n"
s += " ###\n" s += " ###\n"
s += " # Stage: {}\n".format(stage[0]) s += " # Stage: {}\n".format(stage[0])
s += " ###\n" s += " ###\n"
s += "\n" for config in configs:
# Mac OS X os, os_version, compiler, build_type, task = config
for config in configs_mac: os_type = "osx" if os == "osx" else "linux"
osx = config[0] s += " # {}-{} - {}\n".format(os, os_version, build_type)
compiler = config[1]
build_type = config[2]
s += " # {} - {}\n".format(osx, build_type)
buildConfig = "" buildConfig = ""
buildConfig += " - stage: {}\n".format(stage[0]) buildConfig += " - stage: {}\n".format(stage[0])
buildConfig += " os: osx\n" buildConfig += " os: {}\n".format(os_type)
buildConfig += " osx_image: xcode9.1\n" if os_type == "osx":
buildConfig += " osx_image: {}\n".format(os_version)
buildConfig += " compiler: {}\n".format(compiler) buildConfig += " compiler: {}\n".format(compiler)
buildConfig += " env: CONFIG={} COMPILER={} STL=libc++\n".format(build_type, compiler) buildConfig += " env: {}".format(get_env_string(os, os_version, compiler, build_type, task))
buildConfig += " install:\n" buildConfig += " install:\n"
if stage[1] == "Build1": if stage[1] == "Build1":
buildConfig += " - rm -rf build\n" buildConfig += " - rm -rf build\n"
buildConfig += " - travis/install_osx.sh\n" buildConfig += " - travis/skip_test.sh\n"
if os_type == "osx":
buildConfig += " - travis/install_osx.sh\n"
buildConfig += " before_script:\n" buildConfig += " before_script:\n"
buildConfig += ' - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode\n' buildConfig += ' - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode\n'
buildConfig += " script:\n" buildConfig += " script:\n"
buildConfig += " - travis/build.sh {}\n".format(stage[1]) buildConfig += " - travis/build.sh {}\n".format(stage[1])
if os_type == "linux":
buildConfig += " before_cache:\n"
buildConfig += " - docker cp storm:/opt/storm/. .\n"
buildConfig += " after_failure:\n" buildConfig += " after_failure:\n"
buildConfig += " - find build -iname '*err*.log' -type f -print -exec cat {} \;\n" buildConfig += " - find build -iname '*err*.log' -type f -print -exec cat {} \;\n"
s += buildConfig
# Linux via Docker # Deployment
for config in configs_linux: if stage[1] == "Tasks":
allow_fail = "" if "Docker" in task or "Doxygen" in task:
linux = config[0] buildConfig += " deploy:\n"
compiler = config[1] if "Docker" in task:
build_type = config[2] buildConfig += " - provider: script\n"
s += " # {} - {}\n".format(linux, build_type) buildConfig += " skip_cleanup: true\n"
buildConfig = "" buildConfig += " script: bash travis/deploy_docker.sh storm\n"
buildConfig += " - stage: {}\n".format(stage[0]) if "Doxygen" in task:
allow_fail += " - stage: {}\n".format(stage[0]) buildConfig += " - provider: pages\n"
buildConfig += " os: linux\n" buildConfig += " skip_cleanup: true\n"
allow_fail += " os: linux\n" buildConfig += " github_token: $GITHUB_TOKEN\n"
buildConfig += " compiler: {}\n".format(compiler) buildConfig += " local_dir: build/doc/html/\n"
buildConfig += " env: CONFIG={} LINUX={} COMPILER={}\n".format(build_type, linux, compiler) buildConfig += " repo: moves-rwth/storm-doc\n"
allow_fail += " env: CONFIG={} LINUX={} COMPILER={}\n".format(build_type, linux, compiler) buildConfig += " target_branch: master\n"
buildConfig += " install:\n" buildConfig += " on:\n"
if stage[1] == "Build1": buildConfig += " branch: master\n"
buildConfig += " - rm -rf build\n"
buildConfig += " - travis/install_linux.sh\n"
buildConfig += " before_script:\n"
buildConfig += ' - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" # Workaround for nonblocking mode\n'
buildConfig += " script:\n"
buildConfig += " - travis/build.sh {}\n".format(stage[1])
buildConfig += " before_cache:\n"
buildConfig += " - docker cp storm:/opt/storm/. .\n"
buildConfig += " after_failure:\n"
buildConfig += " - find build -iname '*err*.log' -type f -print -exec cat {} \;\n"
# Upload to DockerHub
if stage[1] == "TestAll" and "Travis" in build_type:
buildConfig += " after_success:\n"
buildConfig += " - travis/deploy_storm.sh\n"
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)

3
travis/mtime_cache/globs.txt

@ -1,5 +1,8 @@
src/**/*.{%{cpp}} src/**/*.{%{cpp}}
src/**/*.{in}
src/**/CMakeLists.txt src/**/CMakeLists.txt
CMakeLists.txt CMakeLists.txt
*.{in}
resources/3rdparty/**/*.{%{cpp}} resources/3rdparty/**/*.{%{cpp}}
resources/3rdparty/eigen-3.3-beta1/StormEigen/**/* resources/3rdparty/eigen-3.3-beta1/StormEigen/**/*
resources/3rdparty/eigen-3.3-beta1/unsupported/**/*

5
travis/install_linux.sh → travis/skip_test.sh

@ -1,11 +1,6 @@
#!/bin/bash #!/bin/bash
set -e
# Skip this run? # Skip this run?
if [ -f build/skip.txt ] if [ -f build/skip.txt ]
then then
exit 0 exit 0
fi fi
#sudo apt-get install -qq -y docker
|||||||
100:0
Loading…
Cancel
Save