chiark / gitweb /
make sure config exists before writing to it
[fdroidserver.git] / .gitlab-ci.yml
index 0d1713c0dd1b78f275c79345c7478314c101aefc..6ce9064e37f70e86ddc45ab9d6faa9b47d7534d3 100644 (file)
@@ -1,10 +1,25 @@
-image: fdroid/ci:server-20161223
+image: registry.gitlab.com/fdroid/ci-images-server:latest
 
 test:
   script:
-    - mkdir -p /usr/lib/python3.4/site-packages/
-    # workaround https://github.com/pypa/setuptools/issues/937
-    - pip3 install setuptools==33.1.1
     - pip3 install -e .
     - cd tests
     - ./complete-ci-tests
+
+# Test that the parsing of the .txt format didn't change 
+# from last released version.
+metadata_v0:
+  script:
+    - cd tests
+    - export GITCOMMIT=`git describe`
+    - git checkout 0.8  # bump after release
+    - cd ..
+    - git clone --depth 1 https://gitlab.com/fdroid/fdroiddata
+    - cd fdroiddata
+    - ../tests/dump_internal_metadata_format.py
+    - cd ..
+    - git reset --hard
+    - git checkout $GITCOMMIT
+    - cd fdroiddata
+    - ../tests/dump_internal_metadata_format.py
+    - diff -uw metadata/dump_*