diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 49da70499fe51970d096b57550a045dbe79fd77f..8ec44adad11daf5780114ac632a5f492d29aa08b 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/.