diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 81a91409ce924e9822f2be2a6b69b6b194fab00f..60dda1530ac2b0c4ca820da1caf9cea499a905e2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,15 +20,18 @@ cache:
 
 test:
   stage: test
-  before_script: adduser --disabled-password --gecos "Test User" testuser
-  script: sudo -u testuser tox
+  before_script:
+    - adduser --disabled-password --gecos "Test User" testuser
+  script:
+    - sudo -u testuser tox
   artifacts:
     paths:
       - htmlcov/
 
 lint:
   stage: test
-  script: tox -e lint,security
+  script:
+    - tox -e lint,security
   allow_failure: true
 
 build_dist:
@@ -41,7 +44,8 @@ build_dist:
 
 pages:
   stage: deploy
-  script: tox -e docs -- BUILDDIR=../public/docs
+  script:
+    - tox -e docs -- BUILDDIR=../public/docs
   artifacts:
     paths:
     - public/