diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30df030d0d33235310f6fdf3968b42a00241edd2..547fec933ac5b46e3af42095849ce813b1cfa928 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,7 @@ cache: stages: - build - test + - deploy build: stage: build @@ -22,10 +23,23 @@ build: - CXX=g++-7 CC=gcc-7 cmake .. -DCMAKE_BUILD_TYPE=Coverage - make pastis -test: +tests: stage: test script: - ls > /dev/null # seems necessary to ensure build is here... - cd build - make unit_tests - make coverage-report + +pages: + stage: deploy + dependencies: + - tests + script: + - ls > /dev/null # seems necessary to ensure build is here... + - rm -rf public/ + - mv build/coverage/ public/ + artifacts: + paths: + - public + expire_in: 30 days