chiark / gitweb /
c73fa7ab7d1ee7a865c90efb4e3073894ef9b8a8
[fdroidserver.git] / .gitlab-ci.yml
1 image: registry.gitlab.com/fdroid/ci-images:server-latest
2
3 test:
4   script:
5     - mkdir -p /usr/lib/python3.4/site-packages/
6     # workaround https://github.com/pypa/setuptools/issues/937
7     - pip3 install setuptools==33.1.1
8     - pip3 install -e .
9     - cd tests
10     - ./complete-ci-tests
11
12 # Test that the parsing of the .txt format didn't change. The metadata
13 # field 'Author Web Site' was added after 0.7.0, so that can't be part
14 # of the test.
15 metadata_v0:
16   script:
17     - cd tests
18     - cp dump_internal_metadata_format.py dump.py # since this isn't in old commits
19     - git checkout 0.7.0  # or any old commit of your choosing
20     - cd ..
21     - sed -i "s/'Author Email',/'Author Email',\n'Author Web Site',/" fdroidserver/metadata.py
22     - git clone --depth 1 https://gitlab.com/fdroid/fdroiddata
23     - cd fdroiddata
24     - ../tests/dump.py
25     - cd ..
26     - git reset --hard
27     - git checkout master
28     - cd fdroiddata
29     - ../tests/dump.py
30     - "sed -i -e '/AuthorWebSite/d'
31              -e '/Description: No description available/d'
32              -e \"/Description: ''/d\"
33              metadata/dump_*/*.yaml"
34     - diff -uw metadata/dump_*