diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ef1aa118168fcd98c0263f173aaf9a20c6b9a6d9..3c9e6bc335914af483574e8e190334a172af9d58 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,7 @@
+stages:
+  - test
+  - deploy
+
 test-centos7:
   image: centos:centos7
   stage: test
@@ -18,6 +22,7 @@ test-centos7:
 
 pages:
   image: alpine
+  stage: deploy
   script:
   - apk --no-cache add py2-pip python-dev
   - pip install sphinx
@@ -30,6 +35,7 @@ pages:
     - public
   only:
   - master
+  
 deploy-webserver:
   stage: deploy
   before_script: