Skip to content
Snippets Groups Projects
Commit 8762aad7 authored by Mathis Kelm's avatar Mathis Kelm
Browse files

[ci] Simplify testing of python bindings after dune 2.9

parent dece5cff
No related branches found
No related tags found
1 merge request!3425Cleanup python setup for dune 2.9 and newer
......@@ -68,7 +68,7 @@ pylint-flake8 (python):
fi
- |
if [ -d build-cmake/python/dumux ] ; then
source bin/testing/ci-setup-python-env.sh
source /dune/modules/dune-common/build-cmake/dune-env/bin/activate
pylint --rcfile=.pylintrc build-cmake/python/dumux
flake8 build-cmake/python/dumux
fi
......@@ -250,7 +250,7 @@ test python:
rm -r /dune/modules/dune-common/build-cmake/dune-env
mv build-cmake/dune-env /dune/modules/dune-common/build-cmake/dune-env
fi
source bin/testing/ci-setup-python-env.sh
source /dune/modules/dune-common/build-cmake/dune-env/bin/activate
pushd build-cmake
DUNE_LOG_LEVEL=DEBUG ctest --output-on-failure -L python
DUNE_LOG_LEVEL=DEBUG ctest --output-on-failure -L python
......
#!/bin/bash
if [ -d "/dune/modules/dune-common/build-cmake/dune-env" ]; then
# Use internal venv of DUNE
echo "Activating the Python virtual environment of dune-common"
source /dune/modules/dune-common/build-cmake/dune-env/bin/activate
else
if [ -L /dune/bin/setup-python ] && [ -e /dune/bin/setup-python ] ; then
dunecontrol bexec "echo -n :\$(pwd)/python >> $(pwd)/pythonpath.txt"
export PYTHONPATH=$PYTHONPATH$(cat pythonpath.txt)
rm pythonpath.txt
setup-python --opts=$DUNE_OPTS_FILE install
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment