Commit 675735d6 authored by René Fritze's avatar René Fritze Committed by René Fritze

[ci] enable coverage run with mpi tests

parent eaf4656a
...@@ -497,6 +497,42 @@ ci_weekly 3 8: ...@@ -497,6 +497,42 @@ ci_weekly 3 8:
image: pymor/testing_py3.8:06d87fc5395c39231eb05b6df06266dab9a4dbf9 image: pymor/testing_py3.8:06d87fc5395c39231eb05b6df06266dab9a4dbf9
script: ./.ci/gitlab/test_vanilla.bash script: ./.ci/gitlab/test_vanilla.bash
submit mpi 3 6:
extends: .submit
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- when: on_success
image: pymor/python:3.6
variables:
COVERAGE_FLAG: mpi
dependencies:
- mpi 3 6
needs: ["mpi 3 6"]
submit mpi 3 7:
extends: .submit
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- when: on_success
image: pymor/python:3.7
variables:
COVERAGE_FLAG: mpi
dependencies:
- mpi 3 7
needs: ["mpi 3 7"]
submit mpi 3 8:
extends: .submit
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- when: on_success
image: pymor/python:3.8
variables:
COVERAGE_FLAG: mpi
dependencies:
- mpi 3 8
needs: ["mpi 3 8"]
submit vanilla 3 6: submit vanilla 3 6:
extends: .submit extends: .submit
rules: rules:
......
...@@ -30,6 +30,6 @@ export PYTHONHASHSEED=0 ...@@ -30,6 +30,6 @@ export PYTHONHASHSEED=0
python setup.py build_ext -i python setup.py build_ext -i
PYMOR_VERSION=$(python -c 'import pymor;print(pymor.__version__)') PYMOR_VERSION=$(python -c 'import pymor;print(pymor.__version__)')
COMMON_PYTEST_OPTS="--junitxml=test_results_${PYMOR_VERSION}.xml --cov=src/pymor --cov-report=xml --cov-config=setup.cfg \ COMMON_PYTEST_OPTS="--junitxml=test_results_${PYMOR_VERSION}.xml --cov=src/pymor --cov-report=xml \
--memprof-top-n 50 --memprof-csv-file=memory_usage.txt\ --memprof-top-n 50 --memprof-csv-file=memory_usage.txt\
--hypothesis-profile ${PYMOR_HYPOTHESIS_PROFILE}" --hypothesis-profile ${PYMOR_HYPOTHESIS_PROFILE}"
...@@ -227,7 +227,7 @@ ci_weekly {{py[0]}} {{py[2]}}: ...@@ -227,7 +227,7 @@ ci_weekly {{py[0]}} {{py[2]}}:
script: ./.ci/gitlab/test_vanilla.bash script: ./.ci/gitlab/test_vanilla.bash
{%- endfor %} {%- endfor %}
{%- for script, py, para in matrix if script in ['vanilla', 'oldest', 'numpy_git'] %} {%- for script, py, para in matrix if script in ['vanilla', 'oldest', 'numpy_git', 'mpi'] %}
submit {{script}} {{py[0]}} {{py[2]}}: submit {{script}} {{py[0]}} {{py[2]}}:
extends: .submit extends: .submit
rules: rules:
......
...@@ -3,4 +3,6 @@ ...@@ -3,4 +3,6 @@
THIS_DIR="$(cd "$(dirname ${BASH_SOURCE[0]})" ; pwd -P )" THIS_DIR="$(cd "$(dirname ${BASH_SOURCE[0]})" ; pwd -P )"
source ${THIS_DIR}/common_test_setup.bash source ${THIS_DIR}/common_test_setup.bash
xvfb-run -a mpirun -n 2 python src/pymortests/mpi_run_demo_tests.py xvfb-run -a mpirun -n 2 coverage run --rcfile=setup.cfg --parallel-mode src/pymortests/mpi_run_demo_tests.py
coverage combine
coverage xml -i
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment