chiark / gitweb /
scanner: rename variables, use os.path.relpath
[fdroidserver.git] / .gitlab-ci.yml
index 19fdc20f227094c75b9f76324a4a3b56b71e0f19..6ce9064e37f70e86ddc45ab9d6faa9b47d7534d3 100644 (file)
@@ -1,8 +1,25 @@
-before_script:
-  - apt-get -q update -y
-  - echo " == Installing required packages"
-  - apt-get -q install -y python pyflakes pep8 dash bash ruby
+image: registry.gitlab.com/fdroid/ci-images-server:latest
 
-metadata_check:
+test:
   script:
-    - ./hooks/pre-commit
+    - 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_*