Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pymor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
pyMOR
pymor
Commits
675735d6
Commit
675735d6
authored
Oct 13, 2020
by
René Fritze
Committed by
René Fritze
Oct 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci] enable coverage run with mpi tests
parent
eaf4656a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
3 deletions
+41
-3
.ci/gitlab/ci.yml
.ci/gitlab/ci.yml
+36
-0
.ci/gitlab/common_test_setup.bash
.ci/gitlab/common_test_setup.bash
+1
-1
.ci/gitlab/template.ci.py
.ci/gitlab/template.ci.py
+1
-1
.ci/gitlab/test_mpi.bash
.ci/gitlab/test_mpi.bash
+3
-1
No files found.
.ci/gitlab/ci.yml
View file @
675735d6
...
@@ -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
:
...
...
.ci/gitlab/common_test_setup.bash
View file @
675735d6
...
@@ -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
}
"
.ci/gitlab/template.ci.py
View file @
675735d6
...
@@ -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:
...
...
.ci/gitlab/test_mpi.bash
View file @
675735d6
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment