From cb51885541f4eb925cea6a8b925690d904b09584 Mon Sep 17 00:00:00 2001
From: Denis Arrivault <denis.arrivault@lif.univ-mrs.fr>
Date: Fri, 28 Apr 2017 15:27:51 +0200
Subject: [PATCH] Uses the registry images

---
 .gitlab-ci.yml | 64 ++++++++++++--------------------------------------
 1 file changed, 15 insertions(+), 49 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3508233..e9e0831 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,62 +1,28 @@
 # CI Config for ltaftpy / gitlab
-stages:
-  - build
-#  - test
-  - doc
 
-# Global runner/docker image definition
-image: ubuntu:latest
-
-# Global caching 
-cache:
-  key: "cache"
-  paths:
-# apt
-    - apt-cache
-# build
-    - build
-  
-before_script:
-  - export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
-  - apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y cmake libfftw3-dev liblapack-dev
-  - apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y python3.5 python3.5-dev python3-pip python3-tk
-  - apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y python3-matplotlib
-  - pip3 install --upgrade pip
-  - pip3 install scipy nose coverage pytest pytest-cov Sphinx sphinxcontrib-bibtex
-  - pip3 list
-
-# Main build 
-build: 
-  stage: build
+#On X86_64 ubuntu
+unbutu:X86_64:
+  image: registry.gitlab.lif.univ-mrs.fr:5005/dev/ltfatpy/ubuntu:X86_64
   tags:
     - docker
   script:
     - pip3 install -e .
+    - nosetests
+    - python3 setup.py build_sphinx
+    - cp -r build/sphinx/html public
+  artifacts:
+    paths:
+      - public
+      - build
 
-# Tests 
-#test:
-#  stage: test
-#  tags:
-#    - docker
-#  script:
-#    - pip3 install -e .
-#    - nosetests
-#  artifacts:
-#    when: always
-#    untracked: true
-#    paths:
-#      - build/
-#    expire_in: 8d
-
-# Doc generation
-pages:
-  stage: doc
+#On i686 ubuntu
+ubuntu:i686:
+  image: registry.gitlab.lif.univ-mrs.fr:5005/dev/ltfatpy/ubuntu:i686
   tags:
     - docker
   script:
     - pip3 install -e .
-    - python3 setup.py build_sphinx
-    - cp -r build/sphinx/html public
+    - nosetests
   artifacts:
     paths:
-      - public
+      - build
\ No newline at end of file
-- 
GitLab