3 # this is the script run by the Jenkins server to run the tools tests. Be
4 # sure to always run it in its dir, i.e. ./jenkins-test, otherwise it might
5 # remove things that you don't want it to.
8 # https://jenkins.debian.net/job/reproducible_fdroid_test
10 if [ `dirname $0` != "." ]; then
11 echo "only run this script like ./`basename $0`"
15 # jenkins.debian.net slaves do not export WORKSPACE
16 if [ -z $WORKSPACE ]; then
17 export WORKSPACE=`pwd`
23 # set up Android SDK to use the Debian packages in stretch
24 export ANDROID_HOME=/usr/lib/android-sdk
26 rm -rf $WORKSPACE/.testfiles
28 ./run-tests $WORKSPACE
30 # this is set up and managed by jenkins-build-all
31 cd $WORKSPACE/fdroiddata
33 rm -f config.py keystore.jks
34 ../fdroid init --verbose
37 export GNUPGHOME=$WORKSPACE/tests/gnupghome
38 echo "build_server_always = True" >> config.py
39 echo "gpghome = '$GNUPGHOME'" >> config.py
40 echo "gpgkey = 'CE71F7FB'" >> config.py
43 # publish process when building and signing are on separate machines
44 test -d repo || mkdir repo
45 test -d archive || mkdir archive
46 # when everything is copied over to run on SIGN machine
49 # when everything is copied over to run on BUILD machine
50 ../fdroid update --nosign
51 # when everything is copied over to run on SIGN machine
52 ../fdroid signindex --verbose
54 ../fdroid rewritemeta --quiet