diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4470ec21bad62b266b689644a065180048bce917..35aa40416ebcbaef9e66fb4e95fbe9c797e65a6b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,2 +1,13 @@
+image: "python:3.5"
+
+before_script:
+  - python --version
+  - pip install hyperspy
+
+stages:
+  - test
+
 test:
-  script: python setup.py test
\ No newline at end of file
+  stage: test
+  script:
+    - python setup.py test