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

jenkins-build: git clean before running fdroid cli tests

Otherwise, `fdroid init` will fail since the old repo files are present.
This commit is contained in:
Hans-Christoph Steiner 2017-06-15 17:07:01 +02:00
parent d06f05e9c8
commit 7d6d827e0b
2 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ if [ -e fdroiddata ]; then
git remote update -p git remote update -p
git checkout master git checkout master
git reset --hard origin/master git reset --hard origin/master
# no don't `git clean` here, it'll wipe the APKs in unsigned/
else else
git clone https://gitlab.com/fdroid/fdroiddata.git fdroiddata git clone https://gitlab.com/fdroid/fdroiddata.git fdroiddata
cd fdroiddata cd fdroiddata

View File

@ -67,6 +67,7 @@ if [ -e fdroiddata ]; then
git remote update -p git remote update -p
git checkout master git checkout master
git reset --hard origin/master git reset --hard origin/master
git clean -fdx
cd .. cd ..
else else
git clone --depth 1 https://gitlab.com/fdroid/fdroiddata.git fdroiddata git clone --depth 1 https://gitlab.com/fdroid/fdroiddata.git fdroiddata