From 7f9f47496f8f380ea0dc22730a1e349c010c504f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 28 Jun 2017 23:12:04 +0200 Subject: [PATCH] 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. --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 259e25f2..571253af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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'