From 2d24a540333453f6166a7f4d44e333a4b338e9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 16 May 2016 11:42:58 +0100 Subject: [PATCH] CI: Add android-10 connectedCheck task GitLab doesn't currently support any kind of build or env matrix, so we have to duplicate this code. This is due to change in upcoming releases, at which point I'll fix this. --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85cfff9d0..88e823a06 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: mvdan/fdroid-ci:client-20160512 +image: mvdan/fdroid-ci:client-20160516 cache: paths: @@ -22,7 +22,33 @@ build: # this file changes every time but should not be cached - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock -connectedCheck: +connected10: + variables: + AVD_SDK: "10" + # switch glibc to a memory conserving mode + MALLOC_ARENA_MAX: "2" + script: + - export GRADLE_USER_HOME=$PWD/.gradle + - emulator64-arm -avd fcl-test-$AVD_SDK -no-skin -no-audio -no-window & + - ./tools/wait-for-emulator + - adb shell input keyevent 82 & + - export EXITVALUE=0 + - ./gradlew connectedCheck -PdisablePreDex || { + adb -e logcat -d '*:E'; + echo "get the full logcat here:"; + adb -e logcat -d | curl --silent -F 'clbin=<-' https://clbin.com; + export EXITVALUE=1; + } + - for log in app/build/reports/*ests/*/*ml + app/build/outputs/*results*/connected/*.xml; do + echo "read $log here:"; + cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com; + done + # this file changes every time but should not be cached + - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock + - exit $EXITVALUE + +connected17: variables: AVD_SDK: "17" # switch glibc to a memory conserving mode