Commit 8ed97824 authored by Florian Hindenlang's avatar Florian Hindenlang
Browse files

gitlab-ci modification.

parent 83634a9e
Pipeline #12001 passed with stages
in 2 seconds
stages:
- build
- clean_build_fail
- test
- final_clean
# ---------------------------------------------------------------------------------------------------------------------------------
# Stage "build"
......@@ -18,7 +16,9 @@ build_debug:
- cat build_debug/stdout
- mv ode-1/rk_solve build_debug/.
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
untracked: true
expire_in: 4 weeks
when: always
paths:
- build_debug
......@@ -34,20 +34,13 @@ build_release:
- cat build_release/stdout
- mv ode-1/rk_solve build_release/.
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
untracked: true
expire_in: 4 weeks
when: always
paths:
- build_release
# ---------------------------------------------------------------------------------------------------------------------------------
# Stage "error_clean_build": delete build folders if previous builds fail and exit
# ---------------------------------------------------------------------------------------------------------------------------------
clean_build:
stage: clean_build_fail
script:
- rm -rf build_*
when: on_failure
# ---------------------------------------------------------------------------------------------------------------------------------
# Stage "test"
# ---------------------------------------------------------------------------------------------------------------------------------
......@@ -56,7 +49,9 @@ test_debug:
script:
- cd testing ; python3 run_tests.py -execpath build_debug/rk_solve
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
untracked: true
expire_in: 4 weeks
when: always
paths:
- testing
......@@ -66,16 +61,9 @@ test_release:
script:
- cd testing ; python3 run_tests.py -execpath build_release/rk_solve
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
untracked: true
expire_in: 4 weeks
when: always
paths:
- testing
# ---------------------------------------------------------------------------------------------------------------------------------
# Stage "final_clean": delete build folders if previous builds fail and exit
# ---------------------------------------------------------------------------------------------------------------------------------
clean_all:
stage: final_clean
script:
- rm -rf build_*
- rm -rf testing/dirx_*
when: on_success
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