From a330c613aab4759c248dae1b16958cb1141566d6 Mon Sep 17 00:00:00 2001
From: Denis Arrivault <denis.arrivault@lif.univ-mrs.fr>
Date: Tue, 20 Feb 2018 14:19:29 +0100
Subject: [PATCH] Add page as new CI task

---
 .gitlab-ci.yml | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 27aed8b..09d0952 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,13 +8,27 @@ unbutu:17.10:
   script:
     - pip3 install -e .
     - nosetests
-    - python3 setup.py build_sphinx
-    - cp -r build/sphinx/html public
   artifacts:
     when: always
     untracked: true
     paths:
-      - public
       - build
     expire_in: 8d
 
+# doc template
+.doc: &doc
+  script:
+    - pip3 install -e .
+    - python3 setup.py build_sphinx
+    - cp -r build/sphinx/html public
+  artifacts:
+    paths:
+      - public
+
+pages:
+  <<: *doc
+  image: registry.gitlab.lis-lab.fr:5005/dev/scikit-splearn
+  tags:
+    - docker
+  only:
+    - master
-- 
GitLab