Browse Source

Use configured build type in Travis

refactoring
Matthias Volk 7 years ago
parent
commit
0bf4c731ba
  1. 6
      .travis.yml
  2. 18
      travis/build-helper.sh
  3. 1
      travis/build.sh

6
.travis.yml

@ -29,7 +29,7 @@ jobs:
# docker storm:latest # docker storm:latest
- os: linux - os: linux
compiler: gcc compiler: gcc
env: TASK=Test DOCKER=storm:latest PYTHON=python3
env: TASK=Test CONFIG=Release DOCKER=storm:latest PYTHON=python3
install: install:
travis/install_linux.sh travis/install_linux.sh
script: script:
@ -37,7 +37,7 @@ jobs:
# docker storm-debug:latest # docker storm-debug:latest
- os: linux - os: linux
compiler: gcc compiler: gcc
env: TASK=Test DOCKER=storm-debug:latest PYTHON=python3
env: TASK=Test CONFIG=Debug DOCKER=storm-debug:latest PYTHON=python3
install: install:
travis/install_linux.sh travis/install_linux.sh
script: script:
@ -45,7 +45,7 @@ jobs:
# Documentation # Documentation
- os: linux - os: linux
compiler: gcc compiler: gcc
env: TASK=Documentation DOCKER=storm:latest PYTHON=python3
env: TASK=Documentation CONFIG=Release DOCKER=storm:latest PYTHON=python3
install: install:
travis/install_linux.sh travis/install_linux.sh
script: script:

18
travis/build-helper.sh

@ -21,13 +21,27 @@ run() {
travis_fold start build_pycarl travis_fold start build_pycarl
git clone https://github.com/moves-rwth/pycarl.git git clone https://github.com/moves-rwth/pycarl.git
cd pycarl cd pycarl
python setup.py build_ext -j 1 develop
case "$CONFIG" in
Debug*)
python setup.py build_ext --develop -j 1 develop
;;
*)
python setup.py build_ext -j 1 develop
;;
esac
travis_fold end build_pycarl travis_fold end build_pycarl
cd .. cd ..
# Build stormpy # Build stormpy
travis_fold start build_stormpy travis_fold start build_stormpy
python setup.py build_ext -j 1 develop
case "$CONFIG" in
Debug*)
python setup.py build_ext --develop -j 1 develop
;;
*)
python setup.py build_ext -j 1 develop
;;
esac
travis_fold end build_stormpy travis_fold end build_stormpy
# Perform task # Perform task

1
travis/build.sh

@ -24,6 +24,7 @@ linux)
export N_JOBS=$N_JOBS; export N_JOBS=$N_JOBS;
export OS=$OS; export OS=$OS;
export PYTHON=$PYTHON; export PYTHON=$PYTHON;
export CONFIG=$CONFIG;
export TASK=$TASK; export TASK=$TASK;
cd opt/stormpy; cd opt/stormpy;
travis/build-helper.sh" travis/build-helper.sh"

Loading…
Cancel
Save