Skip to content
Snippets Groups Projects
Commit adf38f3d authored by Florian Hindenlang's avatar Florian Hindenlang
Browse files

gitlab-ci after script

parent 06eca606
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -5,7 +5,17 @@ stages: ...@@ -5,7 +5,17 @@ stages:
# --------------------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------------------
# Stage "build" # Stage "build"
# Cache keeps directory for other jobs # SHORT SYNTAX EXPLANATIONS FOR THE JOB, FOR DETAILS VISIT: ===> https://docs.gitlab.com/ce/ci/yaml/ <===
# "stage:" makes the job part of a stage defined above
# "tags:" selects the runner
# "only:" restricts the execution of the job to a git branch or tag
# "before_script:" shell commands to be executed before the main script.
# "script:" shell commands for the test. If a shell command exits with >0, the job is marked as "failed", else as "passed".
# commands after a failing one are not executed anymore!
# "after_script:" shell commands after passed OR failed script. Careful, the current directory is always the root of the repo!
# "artifacts:" keep data from the job which is uploaded to gitlab.com. You really should set a duration to expiration.
# "when:" can be either on_failure, on_success or always
# "cache:" keeps directories given in paths: for other jobs
# --------------------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------------------
build_debug: build_debug:
stage: build stage: build
...@@ -15,6 +25,8 @@ build_debug: ...@@ -15,6 +25,8 @@ build_debug:
- rm -rf build_debug || true - rm -rf build_debug || true
- mkdir -p build_debug - mkdir -p build_debug
- cd ode-1 ; make clean; make DEBUG=yes 2>stdout.make 1>stderr.make - cd ode-1 ; make clean; make DEBUG=yes 2>stdout.make 1>stderr.make
after_script:
- cd ode-1 ;
- cat stdout.make - cat stdout.make
- cp rk_solve ../build_debug/. - cp rk_solve ../build_debug/.
- cp std*.make ../build_debug/. - cp std*.make ../build_debug/.
...@@ -32,6 +44,8 @@ build_release: ...@@ -32,6 +44,8 @@ build_release:
- rm -rf build_release || true - rm -rf build_release || true
- mkdir -p build_release - mkdir -p build_release
- cd ode-1 ; make clean; make DEBUG=no 2>stdout.make 1>stderr.make - cd ode-1 ; make clean; make DEBUG=no 2>stdout.make 1>stderr.make
after_script:
- cd ode-1 ;
- cat stdout.make - cat stdout.make
- cp rk_solve ../build_release/. - cp rk_solve ../build_release/.
- cp std*.make ../build_release/. - cp std*.make ../build_release/.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment