From 0219ad692e2583f978a52ab2ace84a65fc86ae7e Mon Sep 17 00:00:00 2001
From: Olivier Bertrand <olivier.bertrand@uni-bielefeld.de>
Date: Sun, 1 Apr 2018 13:16:17 +0200
Subject: [PATCH] Update .gitlab-ci.yml

Add stages
---
 .gitlab-ci.yml | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bbac90b..878665c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,13 +5,11 @@ image: python:latest
 before_script:
   - python3 -V                                   # Print out python version for debugging
 
-test:
-  script:
-  - python3 setup.py test
-  - pip3 install tox flake8  # you can also use tox
-  - tox -e py36,flake8
+stages:
+  - build
+  - test
 
-run:
+build:
   script:
   - python3 setup.py bdist_wheel
   # an alternative approach is to install and run:
@@ -21,6 +19,14 @@ run:
   #  paths:
   #  - dist/*.whl
 
+test:
+  script:
+  - python3 setup.py test
+  - pip3 install tox flake8  # you can also use tox
+  - tox -e py36,flake8
+
+
+
 pages:
   script:
   - pip3 install sphinx sphinx-rtd-theme
-- 
GitLab