mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
tests: allow tests to run without any Android SDK installed
This commit is contained in:
parent
43c61aecee
commit
2d3e7ef950
@ -156,31 +156,32 @@ $fdroid --version
|
|||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
echo_header 'run process when building and signing are on separate machines'
|
echo_header 'run process when building and signing are on separate machines'
|
||||||
|
|
||||||
REPOROOT=`create_test_dir`
|
if which zipalign || ls -1 $ANDROID_HOME/build-tools/*/zipalign; then
|
||||||
cd $REPOROOT
|
REPOROOT=`create_test_dir`
|
||||||
cp $WORKSPACE/tests/keystore.jks $REPOROOT/
|
cd $REPOROOT
|
||||||
$fdroid init --keystore keystore.jks --repo-keyalias=sova
|
cp $WORKSPACE/tests/keystore.jks $REPOROOT/
|
||||||
echo 'keystorepass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py
|
$fdroid init --keystore keystore.jks --repo-keyalias=sova
|
||||||
echo 'keypass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py
|
echo 'keystorepass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py
|
||||||
echo "accepted_formats = ['txt', 'yml']" >> config.py
|
echo 'keypass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py
|
||||||
echo 'keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"' >> config.py
|
echo "accepted_formats = ['txt', 'yml']" >> config.py
|
||||||
test -d archive || mkdir archive
|
echo 'keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"' >> config.py
|
||||||
test -d metadata || mkdir metadata
|
test -d archive || mkdir archive
|
||||||
cp $WORKSPACE/tests/metadata/info.guardianproject.urzip.yml metadata/
|
test -d metadata || mkdir metadata
|
||||||
test -d repo || mkdir repo
|
cp $WORKSPACE/tests/metadata/info.guardianproject.urzip.yml metadata/
|
||||||
test -d unsigned || mkdir unsigned
|
test -d repo || mkdir repo
|
||||||
cp $WORKSPACE/tests/urzip-release-unsigned.apk unsigned/info.guardianproject.urzip_100.apk
|
test -d unsigned || mkdir unsigned
|
||||||
$fdroid publish --verbose
|
cp $WORKSPACE/tests/urzip-release-unsigned.apk unsigned/info.guardianproject.urzip_100.apk
|
||||||
$fdroid update --verbose --nosign
|
$fdroid publish --verbose
|
||||||
$fdroid signindex --verbose
|
$fdroid update --verbose --nosign
|
||||||
test -e repo/index.xml
|
$fdroid signindex --verbose
|
||||||
test -e repo/index.jar
|
test -e repo/index.xml
|
||||||
test -e repo/index-v1.jar
|
test -e repo/index.jar
|
||||||
test -e tmp/apkcache
|
test -e repo/index-v1.jar
|
||||||
! test -z tmp/apkcache
|
test -e tmp/apkcache
|
||||||
test -L urzip.apk
|
! test -z tmp/apkcache
|
||||||
grep -F '<application id=' repo/index.xml > /dev/null
|
test -L urzip.apk
|
||||||
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
echo_header "test UTF-8 metadata"
|
echo_header "test UTF-8 metadata"
|
||||||
|
Loading…
Reference in New Issue
Block a user