diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d14adc393f61339cdb69fa07f1667f7d0087abae..676b2959d6f2ed9cc66eedc6eacb881f219ee807 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,27 +10,25 @@ before_script:
   - if [ "$HTTPS_PROXY" != "" ]; then printf "{https_proxy,\"$HTTPS_PROXY\"}.\n" >> ~/.config/rebar3/rebar.config; fi
   - curl -jksSL -o rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3
 
-job:
+stages:
+  - compile
+  - test
+  - publish
 
-  stages:
-    - compile
-    - test
-    - publish
+compile:
+  stage: compile
+  script:
+    - rebar3 as production do compile
 
-  compile:
-    stage: compile
-    script:
-      - rebar3 as production do compile
+test:
+  stage: test
+  script:
+    - rebar3 do eunit --cover --dir=test, cover --verbose
 
-  test:
-    stage: test
-    script:
-      - rebar3 do eunit --cover --dir=test, cover --verbose
-
-  publish:
-    stage: publish
-    only:
-      - /^\d+[.]\d+[.]\d+$/ # Only publish HEAD tagged with semantic version
-    script:
-      - rebar3 update
-      - echo Y | rebar3 hex publish
+publish:
+  stage: publish
+  only:
+    - /^\d+[.]\d+[.]\d+$/ # Only publish HEAD tagged with semantic version
+  script:
+    - rebar3 update
+    - echo Y | rebar3 hex publish