tests: use ci-test-app with current Gradle Android Plugin

This works around the gradle 2.x bug where versions newer than 2.9 cannot
run things.  This also then specifies the version of Gradle Android Plugin
that is included in Debian/stretch.
This commit is contained in:
Hans-Christoph Steiner 2017-09-19 16:41:50 +02:00
parent dc569b9c18
commit 2764c43fa2

View file

@ -177,23 +177,23 @@ $fdroid update
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
echo_header 'run `fdroid build` in fresh git checkout from import.TestCase' echo_header 'run "fdroid build" in fresh git checkout from import.TestCase'
cd $WORKSPACE/tests/tmp/importer cd $WORKSPACE/tests/tmp/importer
git remote update -p git remote update -p
git clean -fdx git clean -fdx
# stick with known working commit, in case future commits break things for this code # stick with known working commit, in case future commits break things for this code
git reset --hard cecf00c08aec56ae7a5eba444150c4d1ae868814 git reset --hard 985aa135524ab7dd1e70335fd47b22fa628b81b3
if [ -d $ANDROID_HOME/platforms/android-23 ]; then if [ -d $ANDROID_HOME/platforms/android-23 ]; then
echo "build_tools = '`ls -1 $ANDROID_HOME/build-tools/ | sort -n | tail -1`'" > config.py echo "build_tools = '`ls -1 $ANDROID_HOME/build-tools/ | sort -n | tail -1`'" > config.py
echo "force_build_tools = True" >> config.py echo "force_build_tools = True" >> config.py
$fdroid build --verbose org.fdroid.ci.test.app:300 $fdroid build --verbose org.fdroid.ci.test.app:300
else else
echo 'WARNING: Skipping `fdroid build` test since android-23 is missing!' echo 'WARNING: Skipping "fdroid build" test since android-23 is missing!'
fi fi
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
echo_header 'copy git import and run `fdroid scanner` on it' echo_header 'copy git import and run "fdroid scanner" on it'
REPOROOT=`create_test_dir` REPOROOT=`create_test_dir`
cd $REPOROOT cd $REPOROOT