1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 19:10:11 +01:00
fdroidserver/.gitlab-ci.yml

40 lines
1.3 KiB
YAML
Raw Normal View History

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-03-01 18:13:34 +01:00
- pip3 install -e .
2015-08-29 01:02:19 +02:00
- cd tests
- ./complete-ci-tests
# Test that the parsing of the .txt format didn't change. The metadata
# fields 'Author Web Site', 'antifeatures=', 'buildozer=', and 'sudo='
# where 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
- export GITCOMMIT=`git describe`
- 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
- sed -i -e '/antifeatures=/d'
-e '/buildozer=/d'
-e '/sudo=/d'
metadata/*.txt
- ../tests/dump.py
- cd ..
- git reset --hard
- git checkout $GITCOMMIT
- 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\"
-e '/antifeatures:/d'
-e '/buildozer:/d'
-e '/sudo:/d'
2017-06-20 20:24:43 +02:00
metadata/dump_*/*.yaml"
- diff -uw metadata/dump_*