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

18
travis/build-helper.sh

@ -21,13 +21,27 @@ run() {
travis_fold start build_pycarl
git clone https://github.com/moves-rwth/pycarl.git
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
cd ..
# 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
# Perform task

1
travis/build.sh

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

Loading…
Cancel
Save