Commit c861ce32 authored by Sebastian Wolf's avatar Sebastian Wolf

Restructure Gitlab CI to prevent race-condition

parent f0b5cb95
Pipeline #1166 passed with stages
in 21 minutes and 28 seconds
......@@ -11,9 +11,15 @@ stages:
- build_clang
- test_clang
cache:
key: "$CI_COMMIT_SHA"
paths:
- build/
- XerusTest
job_build_homepage:
stage: build_homepage
script: "cp .config.mk.ci.gcc config.mk; make -C doc doc && scp -r doc/html xerusweb:libxerus.org-443"
script: "cp .gitlab-ci-configs/.config.mk.ci.gcc config.mk; make -C doc doc && scp -r doc/html xerusweb:libxerus.org-443"
when: always
only:
- master
......@@ -21,34 +27,34 @@ job_build_homepage:
job_make_gcc:
stage: build_gcc
script: "g++ --version; cp .config.mk.ci.gcc config.mk; make XerusTest; cp XerusTest ../"
script: "g++ --version; cp .gitlab-ci-configs/.config.mk.ci.gcc config.mk; make XerusTest"
when: always
job_test_gcc:
stage: test_gcc
script: "cp ../XerusTest .; ./XerusTest all"
script: "./XerusTest all"
job_make_gcc_nocheck:
stage: build_gcc_nocheck
script: "g++ --version; cp .config.mk.ci.gcc.nocheck config.mk; make XerusTest; cp XerusTest ../"
script: "g++ --version; cp .gitlab-ci-configs/.config.mk.ci.gcc.nocheck config.mk; make XerusTest"
job_test_gcc_nocheck:
stage: test_gcc_nocheck
script: "cp ../XerusTest .; ./XerusTest all"
script: "./XerusTest all"
job_build_python2:
stage: build_python2
script: "g++ --version; cp .config.mk.ci.gcc.python config.mk; make python2"
script: "g++ --version; cp .gitlab-ci-configs/.config.mk.ci.gcc.python config.mk; make python2"
when: always
job_build_python3:
stage: build_python3
script: "g++ --version; cp .config.mk.ci.gcc.python config.mk; make python3"
script: "g++ --version; cp .gitlab-ci-configs/.config.mk.ci.gcc.python config.mk; make python3"
when: always
job_test_python2:
stage: test_python2
script: "g++ --version; cp .config.mk.ci.gcc.python config.mk; make test_python2"
script: "g++ --version; cp .gitlab-ci-configs/.config.mk.ci.gcc.python config.mk; make test_python2"
when: always
#job_test_python3:
......@@ -58,10 +64,10 @@ job_test_python2:
job_make_clang:
stage: build_clang
script: "clang++ --version; cp .config.mk.ci.clang config.mk; make XerusTest; cp XerusTest ../"
script: "clang++ --version; cp .gitlab-ci-configs/.config.mk.ci.clang config.mk; make XerusTest"
when: always
job_test_clang:
stage: test_clang
script: "cp ../XerusTest .; ./XerusTest all"
script: "./XerusTest all"
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