diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 18f5ddd6708322d24ed86a8c150200354827b2c9..37df8f097f026fe644ffded9a813e29008af3cb5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,26 +7,28 @@ before_script:
 
 stages:
   - build
-  - flake8
   - test
+  - deploy
 
-build:
+navipy_install:
+  stage: build
   script:
   - python3 setup.py bdist_wheel
 
 flake8:
+  stage: test
   script:
   - pip3 install --user tox flake8
   - python3 -m flake8 navipy/*.py
   
-test:
+navipy_unittest:
+  stage: test
   script:
-  - pip3 install --user networkx  # you can also use tox
+  - pip3 install --user networkx
   - python3 -m unittest discover navipy
 
-
-
-pages:
+doc_build:
+  stage: deploy
   script:
   - pip3 install --user sphinx sphinx-rtd-theme
   - cd doc ; make html