mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 11:00:10 +01:00
Merge branch 'metadata_v0_test' into 'master'
bump fdroid version to test against to 0.8 remove legacy handling See merge request !324
This commit is contained in:
commit
d9193d1b05
@ -6,34 +6,20 @@ test:
|
|||||||
- cd tests
|
- cd tests
|
||||||
- ./complete-ci-tests
|
- ./complete-ci-tests
|
||||||
|
|
||||||
# Test that the parsing of the .txt format didn't change. The metadata
|
# Test that the parsing of the .txt format didn't change
|
||||||
# fields 'Author Web Site', 'antifeatures=', 'buildozer=', and 'sudo='
|
# from last released version.
|
||||||
# where added after 0.7.0, so that can't be part of the test.
|
|
||||||
metadata_v0:
|
metadata_v0:
|
||||||
script:
|
script:
|
||||||
- cd tests
|
- cd tests
|
||||||
- cp dump_internal_metadata_format.py dump.py # since this isn't in old commits
|
|
||||||
- export GITCOMMIT=`git describe`
|
- export GITCOMMIT=`git describe`
|
||||||
- git checkout 0.7.0 # or any old commit of your choosing
|
- git checkout 0.8 # bump after release
|
||||||
- cd ..
|
- cd ..
|
||||||
- sed -i "s/'Author Email',/'Author Email',\n'Author Web Site',/" fdroidserver/metadata.py
|
|
||||||
- git clone --depth 1 https://gitlab.com/fdroid/fdroiddata
|
- git clone --depth 1 https://gitlab.com/fdroid/fdroiddata
|
||||||
- cd fdroiddata
|
- cd fdroiddata
|
||||||
- sed -i -e '/antifeatures=/d'
|
- ../tests/dump_internal_metadata_format.py
|
||||||
-e '/buildozer=/d'
|
|
||||||
-e '/sudo=/d'
|
|
||||||
metadata/*.txt
|
|
||||||
- ../tests/dump.py
|
|
||||||
- cd ..
|
- cd ..
|
||||||
- git reset --hard
|
- git reset --hard
|
||||||
- git checkout $GITCOMMIT
|
- git checkout $GITCOMMIT
|
||||||
- cd fdroiddata
|
- cd fdroiddata
|
||||||
- ../tests/dump.py
|
- ../tests/dump_internal_metadata_format.py
|
||||||
- "sed -i -e '/AuthorWebSite/d'
|
|
||||||
-e '/Description: No description available/d'
|
|
||||||
-e \"/Description: ''/d\"
|
|
||||||
-e '/antifeatures:/d'
|
|
||||||
-e '/buildozer:/d'
|
|
||||||
-e '/sudo:/d'
|
|
||||||
metadata/dump_*/*.yaml"
|
|
||||||
- diff -uw metadata/dump_*
|
- diff -uw metadata/dump_*
|
||||||
|
Loading…
Reference in New Issue
Block a user