*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 4f9d0227 authored by Hanser, Valentin's avatar Hanser, Valentin
Browse files

enabeled all tests again in ci

parent 065fba8e
No related branches found
No related tags found
No related merge requests found
Pipeline #250371 failed
......@@ -15,12 +15,14 @@
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
default:
image: "${CI_TEMPLATE_REGISTRY_HOST}/pages/ngmultiscale^:latest"
stages: # List of stages for jobs, and their order of execution
- build
- test
- deploy
# - deploy
- pages
# build-ngsolve-job: # This job runs in the build stage, which runs first.
......@@ -99,170 +101,169 @@ stages: # List of stages for jobs, and their order of execution
# - make -j4
# - python3 -c "from ngsolve import *;import cempy as cp"
## - cd
## - export PYTHONPATH=~/C++/cmake/build
## - python3 -c "from ngsolve import *;import cempy as cp"
#
#
## cache:
## - key: cache-cempy
## paths:
## - /builds/valentin.hanser/ngmultiscale/C++/cmake/build/*
#
#
#
## artifacts:
## untracked: true
## when: on_success
## expire_in: "30 days"
## paths:
## - /builds/valentin.hanser/ngmultiscale/ngsuite/*
## - /builds/valentin.hanser/ngmultiscale/C++/cmake/build/cempy.so
##/////////////////////////////////////
#
#
#build-basicTypes-job: # This job runs in the build stage, which runs first.
# stage: build
# image: gcc
#
# before_script:
# - apt update && apt -y install make
#
# script:
# - echo "Compiling the code for basicTypes..."
# - cd ./C++/basicTypes
# - make unitTest
# - echo "Compile basicTypes complete."
#
# artifacts:
# name: "$CI_JOB_ID"
# when: on_success
# expire_in: "1 days"
# paths:
# - ./C++/basicTypes/unitTest
# - ./C++/basicTypes/*.o
#
#
#build-unitTestEverett-job: # This job runs in the build stage, which runs first.
# stage: build
# image: gcc
#
# before_script:
# - apt update && apt -y install make
#
# script:
# - echo "Compiling the code for EverettMatrix..."
# - cd ./C++/preisach/preisachScalar/
# - make unitTestEverett -j3
# - echo "Compile unitTestEverett complete."
#
# artifacts:
# name: "$CI_JOB_ID"
# untracked: true
# when: on_success
# expire_in: "1 days"
# paths:
# - ./C++/preisach/preisachScalar/unitTestEverett
# - ./C++/preisach/preisachScalar/*.o
#"""
#build-unitTestPreisachScalar-job: # This job runs in the build stage, which runs first.
# stage: build
# image: gcc
#
# before_script:
# - apt update && apt -y install make
#
# script:
# - echo "Compiling the code for PreisachScalar..."
# - cd ./C++/preisach/preisachScalar/
# - make unitTest -j3
# - echo "Compile unitTest complete."
#
# artifacts:
# name: "$CI_JOB_ID"
# untracked: true
# when: on_success
# expire_in: "1 days"
# paths:
# - ./C++/preisach/preisachScalar/unitTest
# - ./C++/preisach/preisachScalar/*.o
#
#
## ---------------------------------------------------------------
#
#unit-test-basicTypes-job: # This job runs in the test stage.
# stage: test # It only starts when the job in the build stage completes successfully.
# image: gcc
#
# dependencies:
# - "build-basicTypes-job"
# needs :
# - "build-basicTypes-job"
#
# script:
# - echo "Running unit tests basicTypes."
# - cd ./C++/basicTypes
# - ./unitTest
#
#
#
#unit-test-EverettUnitTest-job: # This job runs in the test stage.
# stage: test # It only starts when the job in the build stage completes successfully.
# image: gcc
#
# dependencies:
# - "build-unitTestEverett-job"
# needs : ["build-unitTestEverett-job"]
#
# script:
# - echo "Running unit tests Everett Matrix."
# - cd ./C++/preisach/preisachScalar
# - ./unitTestEverett
#
#
#
#unit-test-PreisachScalarUnitTest-job: # This job runs in the test stage.
# stage: test # It only starts when the job in the build stage completes successfully.
# image: gcc
#
# dependencies:
# - "build-unitTestPreisachScalar-job"
# needs : ["build-unitTestPreisachScalar-job"]
#
# script:
# - echo "Running unit tests PreisachScalar."
# - cd ./C++/preisach/preisachScalar
# - ./unitTest
#
#
#
#unit-test-python3-MS_helper_function:
# stage: test # It only starts when the job in the build stage completes successfully.
# image: python:3.10
#
#
# needs: []
#
# before_script:
# - apt-get update -q -y
# - apt-get install -y python3-pip
# - python -V
# - pip3 install ngsolve
# - pip3 install numpy
# - pip3 install matplotlib
# - pip3 install sympy
# - export PYTHONPATH=/builds/valentin.hanser/ngmultiscale/python:/builds/valentin.hanser/ngmultiscale/python/MeshGenerators
# # - echo $PYTHONPATH
#
#
# script:
# - echo "Running python3 unit tests MS_helper_function."
# - cd unitTests
# - echo $PYTHONPATH
# - python3 unitTest_MS_helper_Functions.py
#
#
# - cd
# - export PYTHONPATH=~/C++/cmake/build
# - python3 -c "from ngsolve import *;import cempy as cp"
# cache:
# - key: cache-cempy
# paths:
# - /builds/valentin.hanser/ngmultiscale/C++/cmake/build/*
# artifacts:
# untracked: true
# when: on_success
# expire_in: "30 days"
# paths:
# - /builds/valentin.hanser/ngmultiscale/ngsuite/*
# - /builds/valentin.hanser/ngmultiscale/C++/cmake/build/cempy.so
build-basicTypes-job: # This job runs in the build stage, which runs first.
stage: build
image: gcc
before_script:
- apt update && apt -y install make
script:
- echo "Compiling the code for basicTypes..."
- cd ./C++/basicTypes
- make unitTest
- echo "Compile basicTypes complete."
artifacts:
name: "$CI_JOB_ID"
when: on_success
expire_in: "1 days"
paths:
- ./C++/basicTypes/unitTest
- ./C++/basicTypes/*.o
build-unitTestEverett-job: # This job runs in the build stage, which runs first.
stage: build
image: gcc
before_script:
- apt update && apt -y install make
script:
- echo "Compiling the code for EverettMatrix..."
- cd ./C++/preisach/preisachScalar/
- make unitTestEverett -j3
- echo "Compile unitTestEverett complete."
artifacts:
name: "$CI_JOB_ID"
untracked: true
when: on_success
expire_in: "1 days"
paths:
- ./C++/preisach/preisachScalar/unitTestEverett
- ./C++/preisach/preisachScalar/*.o
build-unitTestPreisachScalar-job: # This job runs in the build stage, which runs first.
stage: build
image: gcc
before_script:
- apt update && apt -y install make
script:
- echo "Compiling the code for PreisachScalar..."
- cd ./C++/preisach/preisachScalar/
- make unitTest -j3
- echo "Compile unitTest complete."
artifacts:
name: "$CI_JOB_ID"
untracked: true
when: on_success
expire_in: "1 days"
paths:
- ./C++/preisach/preisachScalar/unitTest
- ./C++/preisach/preisachScalar/*.o
# ---------------------------------------------------------------
unit-test-basicTypes-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
image: gcc
dependencies:
- "build-basicTypes-job"
needs :
- "build-basicTypes-job"
script:
- echo "Running unit tests basicTypes."
- cd ./C++/basicTypes
- ./unitTest
unit-test-EverettUnitTest-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
image: gcc
dependencies:
- "build-unitTestEverett-job"
needs : ["build-unitTestEverett-job"]
script:
- echo "Running unit tests Everett Matrix."
- cd ./C++/preisach/preisachScalar
- ./unitTestEverett
unit-test-PreisachScalarUnitTest-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
image: gcc
dependencies:
- "build-unitTestPreisachScalar-job"
needs : ["build-unitTestPreisachScalar-job"]
script:
- echo "Running unit tests PreisachScalar."
- cd ./C++/preisach/preisachScalar
- ./unitTest
unit-test-python3-MS_helper_function:
stage: test # It only starts when the job in the build stage completes successfully.
image: python:3.10
needs: []
before_script:
- apt-get update -q -y
- apt-get install -y python3-pip
- python -V
- pip3 install ngsolve
- pip3 install numpy
- pip3 install matplotlib
- pip3 install sympy
- export PYTHONPATH=/builds/valentin.hanser/ngmultiscale/python:/builds/valentin.hanser/ngmultiscale/python/MeshGenerators
# - echo $PYTHONPATH
script:
- echo "Running python3 unit tests MS_helper_function."
- cd unitTests
- echo $PYTHONPATH
- python3 unitTest_MS_helper_Functions.py
# do a make jupyter-files in docs
pages:
image: python:3.10
stage: deploy
......
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