chiark / gitweb /
571253af2f85d49a0dad67d438974efcc2b1806e
[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     - export GITCOMMIT=`git describe`
20     - git checkout 0.7.0  # or any old commit of your choosing
21     - cd ..
22     - sed -i "s/'Author Email',/'Author Email',\n'Author Web Site',/" fdroidserver/metadata.py
23     - git clone --depth 1 https://gitlab.com/fdroid/fdroiddata
24     - cd fdroiddata
25     - ../tests/dump.py
26     - cd ..
27     - git reset --hard
28     - git checkout $GITCOMMIT
29     - cd fdroiddata
30     - ../tests/dump.py
31     - "sed -i -e '/AuthorWebSite/d'
32              -e '/Description: No description available/d'
33              -e \"/Description: ''/d\"
34              -e '/buildozer:/d'
35              metadata/dump_*/*.yaml"
36     - diff -uw metadata/dump_*