diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index feafd987e1acfb972186818361beb64b0506daa4..e5ed33cf24a6627fe5b029da8991e442f91f45ea 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ image: ubuntu:18.04
 
 stages:
   - build
+  - test
 
 ubuntu-build:
   stage: build
@@ -22,7 +23,7 @@ ubuntu-build:
 ubuntu-test:
   stage: test
   needs:
-    - build
+    - ubuntu-build
 
   before_script:
     - apt-get update -qq && apt-get install -y -qq libnetcdff* netcdf-bin