Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florian Hindenlang
test_gitlabCI
Commits
8ed97824
Commit
8ed97824
authored
May 04, 2017
by
Florian Hindenlang
Browse files
gitlab-ci modification.
parent
83634a9e
Pipeline
#12001
passed with stages
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8ed97824
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment