mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	jenkins-build-makebuildserver: test the whole build/publish workflow
For full deployments like f-droid.org, the building happens on a separate machine from the signing. This adds a basic test of that kind of setup.
This commit is contained in:
		
							parent
							
								
									9c36894955
								
							
						
					
					
						commit
						03223ab9df
					
				
					 1 changed files with 26 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -62,7 +62,22 @@ else
 | 
			
		|||
fi
 | 
			
		||||
 | 
			
		||||
cd fdroiddata
 | 
			
		||||
echo "build_server_always = True" > config.py
 | 
			
		||||
 | 
			
		||||
if [ -z $ANDROID_HOME ]; then
 | 
			
		||||
    if [ -e ~/.android/bashrc ]; then
 | 
			
		||||
        . ~/.android/bashrc
 | 
			
		||||
    else
 | 
			
		||||
        echo "ANDROID_HOME must be set!"
 | 
			
		||||
        exit
 | 
			
		||||
    fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
../fdroid init --verbose
 | 
			
		||||
export GNUPGHOME=$WORKSPACE/tests/gnupghome
 | 
			
		||||
echo "gpghome = '$GNUPGHOME'" >> config.py
 | 
			
		||||
echo "gpgkey = 'CE71F7FB'" >> config.py
 | 
			
		||||
echo "build_server_always = True" >> config.py
 | 
			
		||||
 | 
			
		||||
# if it can't build fdroid, then its really broken
 | 
			
		||||
../fdroid build --verbose --stop --latest org.fdroid.fdroid
 | 
			
		||||
# Gradle, JNI, preassemble
 | 
			
		||||
| 
						 | 
				
			
			@ -73,3 +88,13 @@ echo "build_server_always = True" > config.py
 | 
			
		|||
../fdroid build --verbose --stop org.fdroid.fdroid:96150
 | 
			
		||||
# VLC is important, and uses cmake
 | 
			
		||||
../fdroid build --verbose --stop org.videolan.vlc:12000604
 | 
			
		||||
# test OTA update ZIP build and publish
 | 
			
		||||
../fdroid build --verbose --stop --latest org.fdroid.fdroid.privileged.ota
 | 
			
		||||
 | 
			
		||||
# publish process when building and signing are on separate machines
 | 
			
		||||
test -d repo || mkdir repo
 | 
			
		||||
test -d archive || mkdir archive
 | 
			
		||||
../fdroid publish --verbose
 | 
			
		||||
../fdroid gpgsign --verbose
 | 
			
		||||
../fdroid update --verbose --nosign
 | 
			
		||||
../fdroid signindex --verbose
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue