Commit 14b078b1 authored by Lukas Riedel's avatar Lukas Riedel

Merge branch 'feature/squash-testing-pipeline' into 'master'

squash testing pipeline

Closes #5

See merge request !17

(cherry picked from commit f95e687f)

1d8be482 split testing pipeline into 'build', 'test', and 'deploy'
a3e71132 change all CI job tags to 'demeter'
5e41aac9 ci: remove artifacts for 'debug' build
a8494170 ci: save built docs as artifacts
da3396cd ci: run 'update_dune' pipeline only on master branch
parent 6ef94223
...@@ -8,47 +8,89 @@ before_script: ...@@ -8,47 +8,89 @@ before_script:
stages: stages:
- build - build
- test
- deploy - deploy
build:main: build:main:
stage: build
tags: tags:
- docker - demeter
script: script:
- CMAKE_FLAGS="-DDUNE_PYTHON_VIRTUALENV_SETUP=True -DDUNE_PYTHON_ALLOW_GET_PIP=True" MAKE_FLAGS="-j 2" ./dune-common/bin/dunecontrol --only=dorie all - CMAKE_FLAGS="-DDUNE_PYTHON_VIRTUALENV_SETUP=True -DDUNE_PYTHON_ALLOW_GET_PIP=True" MAKE_FLAGS="-j 2" ./dune-common/bin/dunecontrol --only=dorie all
- export PATH=/opt/dune/dorie/build-cmake/bin:$PATH
- ARGS="--output-on-failure -j 2" ./dune-common/bin/dunecontrol --only=dorie make test
- ./dune-common/bin/dunecontrol --only=dorie make doc
stage: build
artifacts: artifacts:
name: "$CI_BUILD_NAME" name: "$CI_JOB_NAME"
paths: paths:
- $CI_PROJECT_DIR/build-cmake/doc/html/ - $CI_PROJECT_DIR/build-cmake
expire_in: 1 week expire_in: 3 days
build:update_dune: build:update_dune:
stage: build
tags: tags:
- docker - demeter
only:
- master
script: script:
- ./dune-common/bin/dunecontrol update || true - ./dune-common/bin/dunecontrol update
- ./dune-common/bin/dunecontrol exec "rm -rf build-cmake" - ./dune-common/bin/dunecontrol exec "rm -rf build-cmake"
- CMAKE_FLAGS="-DDUNE_PYTHON_VIRTUALENV_SETUP=True -DDUNE_PYTHON_ALLOW_GET_PIP=True" MAKE_FLAGS="-j 2" ./dune-common/bin/dunecontrol all - CMAKE_FLAGS="-DDUNE_PYTHON_VIRTUALENV_SETUP=True -DDUNE_PYTHON_ALLOW_GET_PIP=True" MAKE_FLAGS="-j 2" ./dune-common/bin/dunecontrol --module=dorie all
- export PATH=/opt/dune/dorie/build-cmake/bin:$PATH artifacts:
- ARGS="--output-on-failure -j 2" ./dune-common/bin/dunecontrol --only=dorie make test name: "$CI_JOB_NAME"
stage: build paths:
- $CI_PROJECT_DIR/build-cmake
expire_in: 3 days
build:debug: build:debug:
stage: build
tags: tags:
- docker - demeter
script: script:
- CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DDUNE_PYTHON_VIRTUALENV_SETUP=True -DDUNE_PYTHON_ALLOW_GET_PIP=True" ./dune-common/bin/dunecontrol --only=dorie all - CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DDUNE_PYTHON_VIRTUALENV_SETUP=True -DDUNE_PYTHON_ALLOW_GET_PIP=True" MAKE_FLAGS="-j 2" ./dune-common/bin/dunecontrol --only=dorie all
stage: build
deploy:docs: test:main:
stage: test
tags: tags:
- docker - demeter
dependencies:
- build:main
allow_failure: true
script: script:
- cd $CI_PROJECT_DIR && bash .deploy_docs - ./dune-common/bin/dunecontrol --only=dorie configure
stage: deploy - ARGS="--output-on-failure -j 2" ./dune-common/bin/dunecontrol --only=dorie make test
artifacts:
name: "$CI_JOB_NAME"
paths:
- $CI_PROJECT_DIR/build-cmake/Testing
expire_in: 1 week
test:update_dune:
stage: test
tags:
- demeter
dependencies:
- build:update_dune
only: only:
- master - master
allow_failure: true allow_failure: true
script:
- ./dune-common/bin/dunecontrol --only=dorie configure
- ARGS="--output-on-failure -j 2" ./dune-common/bin/dunecontrol --only=dorie make test
artifacts:
name: "$CI_JOB_NAME"
paths:
- $CI_PROJECT_DIR/build-cmake/Testing
expire_in: 1 week
deploy:build_docs:
stage: deploy
tags:
- demeter
dependencies:
- build:main
script:
- ./dune-common/bin/dunecontrol --only=dorie configure
- ./dune-common/bin/dunecontrol --only=dorie make doc
artifacts:
name: "$CI_JOB_NAME"
paths:
- $CI_PROJECT_DIR/build-cmake/doc
expire_in: 1 week
\ No newline at end of file
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