diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8e39c5c3a67e72208381bec39840ebe6e871ecdf..a822efa030746a0646ada7e3d80a61d8e32416c4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,7 +38,8 @@ run-tests:
 run-appdata:
   stage: test
   script:
-    - appstream-util validate data/org.gajim.Gajim.appdata.xml.in
+    - python3 setup.py build
+    - appstream-util validate build/data/org.gajim.Gajim.appdata.xml
 
 run-build:
   stage: build