diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index de907ac0c334cae2eb35e3413abf8bd616dd3457..7ffb953bf879c04050d984626473204182b41077 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,7 @@ image: $CI_REGISTRY_IMAGE stages: - setup - test + - deploy # Build a docker image in which tests for this repository can run build-testenv: @@ -51,9 +52,29 @@ test: tags: [ docker ] stage: test script: - - mkdir test_build - - cd test_build + - mkdir build + - cd build - cmake -DCMAKE_BUILD_TYPE=Debug .. - cmake --build . - ctest +# Build the sphinx documentation and make it ready for deployment by Gitlab Pages +# Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages +pages: + stage: deploy + #only: + #refs: + #- /^release-.*$/i + #- master + #variables: + ## run pages only on gitlab.com + #- $CI_SERVER_HOST == "gitlab.com" + script: + - mkdir -p build + - cd build + - cmake .. + - cmake --build . --target doc-sphinx + - cp -r doc/sphinx_out ../public + artifacts: + paths: + - public