mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +02:00
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:
parent
6e72ffb043
commit
7f9f47496f
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user