From d2312df68fd073d02255e3e552cfc0adae7ed3f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Tue, 11 Jul 2017 22:14:05 +0200
Subject: [PATCH] Update .gitlab-ci.yml

Former-commit-id: aa6ebd3e4fc2b0032794b8361105a079253ce512
---
 .gitlab-ci.yml | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a42500e2..ca3ff8e3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,6 @@
+stages:
+  - test
+  - deploy
 test-centos7:
   image: centos:centos7
   stage: test
@@ -7,4 +10,19 @@ test-centos7:
   - yum install -y gcc graphviz graphviz-devel
   - cd ippisite
   - pip3 install -r requirements.txt
-  - python3 manage.py test
\ No newline at end of file
+  - python3 manage.py test
+test-centos7:
+  image: centos:centos7
+  stage: deploy
+  script:
+  - yum install -y epel-release
+  - yum install install -y python34-pip python34-devel
+  - yum install -y gcc graphviz graphviz-devel
+  - cd ippisite
+  - pip3 install -r requirements.txt
+  - python3 manage.py test
+  environment:
+    name: production
+    url: https://ippidb.pasteur.fr
+  only:
+  - master
\ No newline at end of file
-- 
GitLab