chiark / gitweb /
gitlab-ci: filter new build fields in metadata_v0 test
authorHans-Christoph Steiner <hans@eds.org>
Wed, 19 Jul 2017 13:56:50 +0000 (15:56 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 19 Jul 2017 14:24:28 +0000 (16:24 +0200)
.gitlab-ci.yml

index eb7704fd055fa5c59d2ee0d2133dc0c34f71d41c..7e17d7c88beff927fcca31ea102b040d8715c328 100644 (file)
@@ -7,8 +7,8 @@ test:
     - ./complete-ci-tests
 
 # Test that the parsing of the .txt format didn't change. The metadata
-# field 'Author Web Site' was added after 0.7.0, so that can't be part
-# of the test.
+# 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
@@ -19,6 +19,10 @@ metadata_v0:
     - 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