mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			51 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash
 | 
						|
#
 | 
						|
# this is the script run by the Jenkins server to run the tools tests.  Be
 | 
						|
# sure to always run it in its dir, i.e. ./jenkins-test, otherwise it might
 | 
						|
# remove things that you don't want it to.
 | 
						|
#
 | 
						|
# runs here:
 | 
						|
# https://jenkins.debian.net/job/reproducible_fdroid_test
 | 
						|
 | 
						|
if [ `dirname $0` != "." ]; then
 | 
						|
    echo "only run this script like ./`basename $0`"
 | 
						|
    exit
 | 
						|
fi
 | 
						|
 | 
						|
# jenkins.debian.net slaves do not export WORKSPACE
 | 
						|
if [ -z $WORKSPACE ]; then
 | 
						|
    export WORKSPACE=`pwd`
 | 
						|
fi
 | 
						|
 | 
						|
set -e
 | 
						|
set -x
 | 
						|
 | 
						|
# set up Android SDK to use the Debian packages in stretch
 | 
						|
export ANDROID_HOME=/usr/lib/android-sdk
 | 
						|
 | 
						|
cd tests
 | 
						|
./run-tests $WORKSPACE
 | 
						|
 | 
						|
# this is set up and managed by jenkins-build-all
 | 
						|
cd $WORKSPACE/fdroiddata
 | 
						|
 | 
						|
test -e config.py || ../fdroid init --verbose
 | 
						|
 | 
						|
export GNUPGHOME=$WORKSPACE/tests/gnupghome
 | 
						|
echo "build_server_always = True" > config.py
 | 
						|
echo "gpghome = '$GNUPGHOME'" >> config.py
 | 
						|
echo "gpgkey = 'CE71F7FB'" >> config.py
 | 
						|
 | 
						|
# publish process when building and signing are on separate machines
 | 
						|
test -d repo || mkdir repo
 | 
						|
test -d archive || mkdir archive
 | 
						|
# when everything is copied over to run on SIGN machine
 | 
						|
../fdroid publish
 | 
						|
../fdroid gpgsign
 | 
						|
# when everything is copied over to run on BUILD machine
 | 
						|
../fdroid update --nosign
 | 
						|
# when everything is copied over to run on SIGN machine
 | 
						|
../fdroid signindex --verbose
 | 
						|
 | 
						|
../fdroid rewritemeta --quiet
 | 
						|
git --no-pager diff
 |