|
@ -11,11 +11,25 @@ travis_fold() { |
|
|
|
|
|
|
|
|
# Helper for building and testing |
|
|
# Helper for building and testing |
|
|
run() { |
|
|
run() { |
|
|
|
|
|
|
|
|
|
|
|
# Build carl-parser |
|
|
|
|
|
travis_fold start build_carl_parser |
|
|
|
|
|
git clone --single-branch -b master14 https://github.com/ths-rwth/carl-parser |
|
|
|
|
|
cd carl-parser |
|
|
|
|
|
mkdir build |
|
|
|
|
|
cd build |
|
|
|
|
|
cmake .. "${CMAKE_ARGS[@]}" |
|
|
|
|
|
make carl-parser -j 1 |
|
|
|
|
|
cd ../.. |
|
|
|
|
|
travis_fold end build_carl_parser |
|
|
|
|
|
|
|
|
# Create virtual environment |
|
|
# Create virtual environment |
|
|
|
|
|
travis_fold start virtualenv |
|
|
virtualenv --python=$PYTHON stormpy-env |
|
|
virtualenv --python=$PYTHON stormpy-env |
|
|
source stormpy-env/bin/activate |
|
|
source stormpy-env/bin/activate |
|
|
# Print version |
|
|
# Print version |
|
|
python --version |
|
|
python --version |
|
|
|
|
|
travis_fold end virtualenv |
|
|
|
|
|
|
|
|
# Build pycarl |
|
|
# Build pycarl |
|
|
travis_fold start build_pycarl |
|
|
travis_fold start build_pycarl |
|
@ -29,8 +43,8 @@ run() { |
|
|
python setup.py build_ext -j 1 develop |
|
|
python setup.py build_ext -j 1 develop |
|
|
;; |
|
|
;; |
|
|
esac |
|
|
esac |
|
|
travis_fold end build_pycarl |
|
|
|
|
|
cd .. |
|
|
cd .. |
|
|
|
|
|
travis_fold end build_pycarl |
|
|
|
|
|
|
|
|
# Build stormpy |
|
|
# Build stormpy |
|
|
travis_fold start build_stormpy |
|
|
travis_fold start build_stormpy |
|
@ -46,13 +60,13 @@ run() { |
|
|
|
|
|
|
|
|
# Perform task |
|
|
# Perform task |
|
|
case $TASK in |
|
|
case $TASK in |
|
|
Test) |
|
|
|
|
|
|
|
|
Test*) |
|
|
# Run tests |
|
|
# Run tests |
|
|
set +e |
|
|
set +e |
|
|
python setup.py test |
|
|
python setup.py test |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
Documentation) |
|
|
|
|
|
|
|
|
Documentation*) |
|
|
# Generate documentation |
|
|
# Generate documentation |
|
|
pip install sphinx sphinx_bootstrap_theme |
|
|
pip install sphinx sphinx_bootstrap_theme |
|
|
cd doc |
|
|
cd doc |
|
@ -72,4 +86,10 @@ run() { |
|
|
# ignored). |
|
|
# ignored). |
|
|
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" |
|
|
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" |
|
|
|
|
|
|
|
|
|
|
|
case "$CONFIG" in |
|
|
|
|
|
Debug*) CMAKE_ARGS=(-DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="$STLARG") ;; |
|
|
|
|
|
Release*) CMAKE_ARGS=(-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="$STLARG") ;; |
|
|
|
|
|
*) echo "Unrecognized value of CONFIG: $CONFIG"; exit 1 ;; |
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
run |
|
|
run |