.gitlab-ci.yml
changeset 357 8275b080c7ad
parent 356 b6e8b2791dec
child 358 d33de925e83d
--- a/.gitlab-ci.yml	Wed Jun 12 17:01:24 2019 +0200
+++ b/.gitlab-ci.yml	Wed Jun 12 17:16:49 2019 +0200
@@ -5,24 +5,36 @@
     paths:
         - /var/local/env/pyams/eggs/*
 
+stages:
+    - build
+    - test
+    - quality
+
+before_script:
+    - export http_proxy=http://172.17.0.1:3128/
+    - export https_proxy=http://172.17.0.1:3128/
+    - python3.5 bootstrap.py --buildout-version=2.12.0
+
+build:
+    stage: build
+    script:
+        - ./bin/buildout
+
 test:
     stage: test
-    before_script:
-        - export http_proxy=http://172.17.0.1:3128/
-        - export https_proxy=http://172.17.0.1:3128/
-        - python3.5 bootstrap.py --buildout-version=2.12.0
-        - ./bin/buildout
     script:
         - ./bin/test
 
 quality:
-    stage: test
+    stage: quality
     image: docker:stable
     variables:
         DOCKER_DRIVER: overlay2
     allow_failure: true
     services:
         - docker:stable-dind
+    before_script:
+        - grep "version =" setup.py
     script:
         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
         - docker run