Skip to content
Snippets Groups Projects
Commit 78ac93c1 authored by Markus Holzer's avatar Markus Holzer
Browse files

Merge branch 'junit' into 'master'

Display pytest results in Gitlab

See merge request !205
parents e720af7a 6504e018
1 merge request!205Display pytest results in Gitlab
Pipeline #29616 passed with stages
in 7 minutes and 42 seconds
...@@ -19,7 +19,8 @@ tests-and-coverage: ...@@ -19,7 +19,8 @@ tests-and-coverage:
- mkdir -p ~/.config/matplotlib - mkdir -p ~/.config/matplotlib
- echo "backend:template" > ~/.config/matplotlib/matplotlibrc - echo "backend:template" > ~/.config/matplotlib/matplotlibrc
- mkdir public - mkdir public
- py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=. -m "not longrun" --html test-report/index.html - py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=. -m "not longrun" --html test-report/index.html --junitxml=report.xml
- python3 -m coverage xml
tags: tags:
- docker - docker
- cuda11 - cuda11
...@@ -29,6 +30,9 @@ tests-and-coverage: ...@@ -29,6 +30,9 @@ tests-and-coverage:
paths: paths:
- coverage_report - coverage_report
- test-report - test-report
reports:
cobertura: coverage.xml
junit: report.xml
# Nightly test - runs "long run" jobs only # Nightly test - runs "long run" jobs only
test-longrun: test-longrun:
...@@ -41,15 +45,18 @@ test-longrun: ...@@ -41,15 +45,18 @@ test-longrun:
- export NUM_CORES=$(nproc --all) - export NUM_CORES=$(nproc --all)
- mkdir -p ~/.config/matplotlib - mkdir -p ~/.config/matplotlib
- echo "backend:template" > ~/.config/matplotlib/matplotlibrc - echo "backend:template" > ~/.config/matplotlib/matplotlibrc
- py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=. --html test-report/index.html - py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=. --html test-report/index.html --junitxml=report.xml
tags: tags:
- docker - docker
- cuda11 - cuda11
- AVX - AVX
artifacts: artifacts:
when: always
paths: paths:
- coverage_report - coverage_report
- test-report - test-report
reports:
junit: report.xml
# Minimal tests in windows environment # Minimal tests in windows environment
minimal-windows: minimal-windows:
...@@ -77,11 +84,15 @@ ubuntu: ...@@ -77,11 +84,15 @@ ubuntu:
- mkdir -p ~/.config/matplotlib - mkdir -p ~/.config/matplotlib
- echo "backend:template" > ~/.config/matplotlib/matplotlibrc - echo "backend:template" > ~/.config/matplotlib/matplotlibrc
- sed -i 's/--doctest-modules //g' pytest.ini - sed -i 's/--doctest-modules //g' pytest.ini
- pytest-3 -v -m "not longrun" - pytest-3 -v -m "not longrun" --junitxml=report.xml
tags: tags:
- docker - docker
- cuda11 - cuda11
- AVX - AVX
artifacts:
when: always
reports:
junit: report.xml
minimal-conda: minimal-conda:
stage: test stage: test
...@@ -136,11 +147,11 @@ pycodegen-integration: ...@@ -136,11 +147,11 @@ pycodegen-integration:
- mkdir -p ~/.config/matplotlib - mkdir -p ~/.config/matplotlib
- echo "backend:template" > ~/.config/matplotlib/matplotlibrc - echo "backend:template" > ~/.config/matplotlib/matplotlibrc
- cd pystencils - cd pystencils
- py.test -v -n $NUM_CORES . - py.test -v -n $NUM_CORES --junitxml=report.xml .
- cd ../lbmpy - cd ../lbmpy
- py.test -v -n $NUM_CORES . - py.test -v -n $NUM_CORES --junitxml=report.xml .
- cd ../pygrandchem - cd ../pygrandchem
- py.test -v -n $NUM_CORES . - py.test -v -n $NUM_CORES --junitxml=report.xml .
- cd ../walberla/build/ - cd ../walberla/build/
- make CodegenJacobiCPU CodegenJacobiGPU CodegenPoissonCPU CodegenPoissonGPU MicroBenchmarkGpuLbm LbCodeGenerationExample UniformGridBenchmarkGPU_trt UniformGridBenchmarkGPU_entropic_kbc_n4 FluctuatingMRT - make CodegenJacobiCPU CodegenJacobiGPU CodegenPoissonCPU CodegenPoissonGPU MicroBenchmarkGpuLbm LbCodeGenerationExample UniformGridBenchmarkGPU_trt UniformGridBenchmarkGPU_entropic_kbc_n4 FluctuatingMRT
- cd apps/benchmarks/UniformGridGPU - cd apps/benchmarks/UniformGridGPU
...@@ -151,6 +162,10 @@ pycodegen-integration: ...@@ -151,6 +162,10 @@ pycodegen-integration:
- docker - docker
- cuda11 - cuda11
- AVX - AVX
artifacts:
when: always
reports:
junit: "*/report.xml"
# -------------------- Linter & Documentation -------------------------------------------------------------------------- # -------------------- Linter & Documentation --------------------------------------------------------------------------
......
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