From 431917e56ab8f768b945ca649ec2a91a50d17690 Mon Sep 17 00:00:00 2001 From: markus holzer <markus.holzer@fau.de> Date: Sat, 2 Jul 2022 14:16:36 +0200 Subject: [PATCH] Change pipeline --- .gitlab-ci.yml | 44 +++++++++++++++++++------------------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 94b3e386..937812c4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,53 +36,50 @@ tests-and-coverage: cobertura: coverage.xml junit: report.xml -# pipeline with latest python version -latest-python: +# Normal test with longruns +tests-and-coverage-with-longrun: stage: test - except: - variables: - - $ENABLE_NIGHTLY_BUILDS - image: i10git.cs.fau.de:5005/pycodegen/pycodegen/latest_python + when: manual + allow_failure: true + image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full script: + - pip install sympy --upgrade - env - pip list - export NUM_CORES=$(nproc --all) - mkdir -p ~/.config/matplotlib - echo "backend:template" > ~/.config/matplotlib/matplotlibrc - mkdir public - - py.test -v -n $NUM_CORES -m "not longrun" --junitxml=report.xml + - py.test -v -n $NUM_CORES tags: - docker + - cuda11 - AVX - artifacts: - when: always - reports: - junit: report.xml -# Nightly test - runs "long run" jobs only -test-longrun: +# pipeline with latest python version +latest-python: stage: test - only: + except: variables: - $ENABLE_NIGHTLY_BUILDS - image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full + image: i10git.cs.fau.de:5005/pycodegen/pycodegen/latest_python script: + - env + - pip list - export NUM_CORES=$(nproc --all) - mkdir -p ~/.config/matplotlib - echo "backend:template" > ~/.config/matplotlib/matplotlibrc - - py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=. --html test-report/index.html --junitxml=report.xml + - mkdir public + - py.test -v -n $NUM_CORES -m "not longrun" --junitxml=report.xml tags: - docker - - cuda11 - AVX artifacts: when: always - paths: - - coverage_report - - test-report reports: junit: report.xml + # Minimal tests in windows environment minimal-windows: stage: test @@ -248,7 +245,6 @@ pycodegen-integration: - cd .. - pip install -e pystencils/ - pip install -e lbmpy/ - - pip install -e pygrandchem/ - cmake --version - ./install_walberla.sh - export NUM_CORES=$(nproc --all) @@ -258,14 +254,12 @@ pycodegen-integration: - py.test -v -n $NUM_CORES --junitxml=report.xml . - cd ../lbmpy - py.test -v -n $NUM_CORES --junitxml=report.xml . - - cd ../pygrandchem - - py.test -v -n $NUM_CORES --junitxml=report.xml . - cd ../walberla/build/ - make -j $NUM_CORES CodegenJacobiCPU CodegenJacobiGPU CodegenPoissonCPU CodegenPoissonGPU MicroBenchmarkGpuLbm LbCodeGenerationExample - - make -j $NUM_CORES multiphaseCPU multiphaseGPU FluctuatingMRT FlowAroundSphereCodeGen + - make -j $NUM_CORES multiphaseCPU multiphaseGPU FluctuatingMRT FlowAroundSphereCodeGen FieldLayoutAndVectorizationTest GeneratedOutflowBC - cd apps/benchmarks/UniformGridGPU - make -j $NUM_CORES - - cd ../UniformGridGenerated + - cd ../UniformGridCPU - make -j $NUM_CORES tags: - docker -- GitLab