chiark / gitweb /
setup.py: don't use pyasn1 to 0.3.3 until pyasn1-modules is updated to support it
[fdroidserver.git] / .gitlab-ci.yml
1 image: registry.gitlab.com/fdroid/ci-images-server:latest
2
3 test:
4   script:
5     - pip3 install -e .
6     - cd tests
7     - ./complete-ci-tests
8
9 # Test that the parsing of the .txt format didn't change. The metadata
10 # fields 'Author Web Site', 'antifeatures=', 'buildozer=', and 'sudo='
11 # where added after 0.7.0, so that can't be part of the test.
12 metadata_v0:
13   script:
14     - cd tests
15     - cp dump_internal_metadata_format.py dump.py # since this isn't in old commits
16     - export GITCOMMIT=`git describe`
17     - git checkout 0.7.0  # or any old commit of your choosing
18     - cd ..
19     - sed -i "s/'Author Email',/'Author Email',\n'Author Web Site',/" fdroidserver/metadata.py
20     - git clone --depth 1 https://gitlab.com/fdroid/fdroiddata
21     - cd fdroiddata
22     - sed -i -e '/antifeatures=/d'
23              -e '/buildozer=/d'
24              -e '/sudo=/d'
25              metadata/*.txt
26     - ../tests/dump.py
27     - cd ..
28     - git reset --hard
29     - git checkout $GITCOMMIT
30     - cd fdroiddata
31     - ../tests/dump.py
32     - "sed -i -e '/AuthorWebSite/d'
33              -e '/Description: No description available/d'
34              -e \"/Description: ''/d\"
35              -e '/antifeatures:/d'
36              -e '/buildozer:/d'
37              -e '/sudo:/d'
38              metadata/dump_*/*.yaml"
39     - diff -uw metadata/dump_*