chiark / gitweb /
jenkins: some reliability fixes to the test scripts
authorHans-Christoph Steiner <hans@eds.org>
Fri, 10 Nov 2017 21:08:31 +0000 (22:08 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 10 Nov 2017 21:08:51 +0000 (22:08 +0100)
jenkins-build-all
jenkins-test

index 2964a9f533cd8edf76d168417430295b766183e0..d33f33b4f2331aad8f6a85da39f2287c84f48ba8 100755 (executable)
@@ -74,7 +74,7 @@ if [ -e fdroiddata ]; then
     git checkout master
     git reset --hard origin/master
     # keep all the cloned source repos
-    git clean -fdx --exclude build
+    git clean -fdx --exclude build --exclude repo --exclude unsigned
 else
     git clone https://gitlab.com/fdroid/fdroiddata.git fdroiddata
     cd fdroiddata
index e031d8a4598d0b980a800712e14f2f4dfc60ef99..181da6def5fb26cf815bf957916fe2cc58b5cd1f 100755 (executable)
@@ -30,11 +30,13 @@ cd tests
 cd $WORKSPACE/fdroiddata
 
 test -e config.py || ../fdroid init --verbose
+test -e keystore.jks || ../fdroid update --create-key
 
 export GNUPGHOME=$WORKSPACE/tests/gnupghome
 echo "build_server_always = True" > config.py
 echo "gpghome = '$GNUPGHOME'" >> config.py
 echo "gpgkey = 'CE71F7FB'" >> config.py
+chmod 0600 config.py
 
 # publish process when building and signing are on separate machines
 test -d repo || mkdir repo