1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

tests: don't run gpgsign tests on Travis CI's OSX, gpg always fails

This commit is contained in:
Hans-Christoph Steiner 2017-09-14 14:34:29 +02:00
parent 2b5edf2434
commit 373b46ab3f

View File

@ -235,13 +235,16 @@ test -e repo/index-v1.jar
grep -F '<application id=' repo/index.xml > /dev/null grep -F '<application id=' repo/index.xml > /dev/null
grep -F '<install packageName=' repo/index.xml > /dev/null grep -F '<install packageName=' repo/index.xml > /dev/null
grep -F '<uninstall packageName=' repo/index.xml > /dev/null grep -F '<uninstall packageName=' repo/index.xml > /dev/null
$fdroid gpgsign --verbose # OSX tests are run on Travis-CI, and gpg fails to launch gpg-agent there
$fdroid gpgsign --verbose if [ "$TRAVIS_OS_NAME" != "osx" ]; then
test -e repo/obb.mainpatch.current_1619.apk.asc $fdroid gpgsign --verbose
test -e repo/obb.main.twoversions_1101617_src.tar.gz.asc $fdroid gpgsign --verbose
! test -e repo/obb.mainpatch.current_1619.apk.asc.asc test -e repo/obb.mainpatch.current_1619.apk.asc
! test -e repo/obb.main.twoversions_1101617_src.tar.gz.asc.asc test -e repo/obb.main.twoversions_1101617_src.tar.gz.asc
! test -e repo/index.xml.asc ! test -e repo/obb.mainpatch.current_1619.apk.asc.asc
! test -e repo/obb.main.twoversions_1101617_src.tar.gz.asc.asc
! test -e repo/index.xml.asc
fi
# we can't easily reproduce the timestamps for things, so just hardcode them # we can't easily reproduce the timestamps for things, so just hardcode them
$sed -i.tmp -e 's,timestamp="[0-9]*",timestamp="1480431575",' repo/index.xml $sed -i.tmp -e 's,timestamp="[0-9]*",timestamp="1480431575",' repo/index.xml