chiark / gitweb /
Merge branch 'some-data-related-fixed' into 'master'
[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 # field 'Author Web Site' was added after 0.7.0, so that can't be part
11 # 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     - ../tests/dump.py
23     - cd ..
24     - git reset --hard
25     - git checkout $GITCOMMIT
26     - cd fdroiddata
27     - ../tests/dump.py
28     - "sed -i -e '/AuthorWebSite/d'
29              -e '/Description: No description available/d'
30              -e \"/Description: ''/d\"
31              -e '/antifeatures:/d'
32              -e '/buildozer:/d'
33              metadata/dump_*/*.yaml"
34     - diff -uw metadata/dump_*