From 43bc96fe3c8009900fc702546760a3e3da3305ce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Wed, 6 Jun 2018 21:52:20 +0200
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 30df030d0..547fec933 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
-- 
GitLab