Skip to content
Snippets Groups Projects
Commit 43bc96fe authored by Stéphane Del Pino's avatar Stéphane Del Pino Committed by Stéphane Del Pino
Browse files

Update .gitlab-ci.yml

parent 15e3a4c3
No related branches found
No related tags found
1 merge request!4Cicd
...@@ -13,6 +13,7 @@ cache: ...@@ -13,6 +13,7 @@ cache:
stages: stages:
- build - build
- test - test
- deploy
build: build:
stage: build stage: build
...@@ -22,10 +23,23 @@ build: ...@@ -22,10 +23,23 @@ build:
- CXX=g++-7 CC=gcc-7 cmake .. -DCMAKE_BUILD_TYPE=Coverage - CXX=g++-7 CC=gcc-7 cmake .. -DCMAKE_BUILD_TYPE=Coverage
- make pastis - make pastis
test: tests:
stage: test stage: test
script: script:
- ls > /dev/null # seems necessary to ensure build is here... - ls > /dev/null # seems necessary to ensure build is here...
- cd build - cd build
- make unit_tests - make unit_tests
- make coverage-report - 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment