chiark / gitweb /
add comments to gradle output directories
[fdroidserver.git] / .gitlab-ci.yml
index 467f1cb1fe58b473ced97c65d3e3b59593195c02..7e17d7c88beff927fcca31ea102b040d8715c328 100644 (file)
@@ -1,7 +1,39 @@
-image: mvdan/fdroid-ci:server-20160429
+image: registry.gitlab.com/fdroid/ci-images-server:latest
 
 test:
   script:
     - pip3 install -e .
     - cd tests
     - ./complete-ci-tests
+
+# Test that the parsing of the .txt format didn't change. The metadata
+# fields 'Author Web Site', 'antifeatures=', 'buildozer=', and 'sudo='
+# where added after 0.7.0, so that can't be part of the test.
+metadata_v0:
+  script:
+    - cd tests
+    - cp dump_internal_metadata_format.py dump.py # since this isn't in old commits
+    - export GITCOMMIT=`git describe`
+    - git checkout 0.7.0  # or any old commit of your choosing
+    - cd ..
+    - sed -i "s/'Author Email',/'Author Email',\n'Author Web Site',/" fdroidserver/metadata.py
+    - git clone --depth 1 https://gitlab.com/fdroid/fdroiddata
+    - cd fdroiddata
+    - sed -i -e '/antifeatures=/d'
+             -e '/buildozer=/d'
+             -e '/sudo=/d'
+             metadata/*.txt
+    - ../tests/dump.py
+    - cd ..
+    - git reset --hard
+    - git checkout $GITCOMMIT
+    - cd fdroiddata
+    - ../tests/dump.py
+    - "sed -i -e '/AuthorWebSite/d'
+             -e '/Description: No description available/d'
+             -e \"/Description: ''/d\"
+             -e '/antifeatures:/d'
+             -e '/buildozer:/d'
+             -e '/sudo:/d'
+             metadata/dump_*/*.yaml"
+    - diff -uw metadata/dump_*