gitlab-ci: fix metadata_v0 test to run on the right commits

Checking out master will often mean its testing the wrong commit, since
merge requests rarely are in master.
This commit is contained in:
Hans-Christoph Steiner 2017-06-28 23:12:04 +02:00
parent 6e72ffb043
commit 7f9f47496f
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ 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
@ -24,7 +25,7 @@ metadata_v0:
- ../tests/dump.py
- cd ..
- git reset --hard
- git checkout master
- git checkout $GITCOMMIT
- cd fdroiddata
- ../tests/dump.py
- "sed -i -e '/AuthorWebSite/d'