From adf38f3d53ca04036ca01110b13b19ba3b6328e6 Mon Sep 17 00:00:00 2001 From: Florian Hindenlang <hindenlang@ipp.mpg.de> Date: Thu, 11 May 2017 11:51:40 +0200 Subject: [PATCH] gitlab-ci after script --- .gitlab-ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 49da704..8ec44ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,17 @@ stages: # --------------------------------------------------------------------------------------------------------------------------------- # 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: stage: build @@ -15,6 +25,8 @@ build_debug: - rm -rf build_debug || true - mkdir -p build_debug - cd ode-1 ; make clean; make DEBUG=yes 2>stdout.make 1>stderr.make + after_script: + - cd ode-1 ; - cat stdout.make - cp rk_solve ../build_debug/. - cp std*.make ../build_debug/. @@ -32,6 +44,8 @@ build_release: - rm -rf build_release || true - mkdir -p build_release - cd ode-1 ; make clean; make DEBUG=no 2>stdout.make 1>stderr.make + after_script: + - cd ode-1 ; - cat stdout.make - cp rk_solve ../build_release/. - cp std*.make ../build_release/. -- GitLab