diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6497344b133d64e9e95d62c929fb29e5b6a8a0d3..7254b9be868697edae7586666d7617a097f34bed 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,10 @@ variables:
   # Commit of ghc/ci-images repository from which to pull Docker images
   DOCKER_REV: e517150438cd9df9564fb91adc4b42e2667b2bc1
 
+stages:
+  - tex
+  - pdf
+
 build-tex:
   image: "ocaml/opam2:latest" 
   script:
@@ -13,6 +17,7 @@ build-tex:
     name: haskell-tex
     paths:
      - haskell.tex
+  stage: tex
 
 build-pdf:
   image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
@@ -24,3 +29,4 @@ build-pdf:
       - haskell.pdf
   dependencies:
     - build-tex
+  stage: pdf