2017-04-03 20:24:00 +02:00
|
|
|
image: registry.gitlab.com/fdroid/ci-images:server-latest
|
2016-02-29 20:56:02 +01:00
|
|
|
|
2015-08-29 01:02:19 +02:00
|
|
|
test:
|
2015-08-28 00:59:46 +02:00
|
|
|
script:
|
2016-06-09 12:15:11 +02:00
|
|
|
- mkdir -p /usr/lib/python3.4/site-packages/
|
2017-02-06 17:28:07 +01:00
|
|
|
# workaround https://github.com/pypa/setuptools/issues/937
|
|
|
|
- pip3 install setuptools==33.1.1
|
2016-03-01 18:13:34 +01:00
|
|
|
- pip3 install -e .
|
2015-08-29 01:02:19 +02:00
|
|
|
- cd tests
|
2015-09-01 12:28:58 +02:00
|
|
|
- ./complete-ci-tests
|
2017-05-27 21:13:36 +02:00
|
|
|
|
|
|
|
# Test that the parsing of the .txt format didn't change. The metadata
|
|
|
|
# field 'Author Web Site' was added after 0.7.0, so that can't be part
|
|
|
|
# of the test.
|
|
|
|
metadata_v0:
|
|
|
|
script:
|
|
|
|
- cd tests
|
|
|
|
- cp dump_internal_metadata_format.py dump.py # since this isn't in old commits
|
2017-06-28 23:12:04 +02:00
|
|
|
- export GITCOMMIT=`git describe`
|
2017-05-27 21:13:36 +02:00
|
|
|
- git checkout 0.7.0 # or any old commit of your choosing
|
|
|
|
- cd ..
|
|
|
|
- sed -i "s/'Author Email',/'Author Email',\n'Author Web Site',/" fdroidserver/metadata.py
|
|
|
|
- git clone --depth 1 https://gitlab.com/fdroid/fdroiddata
|
|
|
|
- cd fdroiddata
|
|
|
|
- ../tests/dump.py
|
|
|
|
- cd ..
|
|
|
|
- git reset --hard
|
2017-06-28 23:12:04 +02:00
|
|
|
- git checkout $GITCOMMIT
|
2017-05-27 21:13:36 +02:00
|
|
|
- cd fdroiddata
|
|
|
|
- ../tests/dump.py
|
2017-06-20 20:24:43 +02:00
|
|
|
- "sed -i -e '/AuthorWebSite/d'
|
|
|
|
-e '/Description: No description available/d'
|
|
|
|
-e \"/Description: ''/d\"
|
2017-06-22 16:32:44 +02:00
|
|
|
-e '/buildozer:/d'
|
2017-06-20 20:24:43 +02:00
|
|
|
metadata/dump_*/*.yaml"
|
2017-05-27 21:13:36 +02:00
|
|
|
- diff -uw metadata/dump_*
|