diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a6ce6a091..54486423f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,8 @@ cache: before_script: - export GRADLE_USER_HOME=$PWD/.gradle + - export ANDROID_COMPILE_SDK=`sed -n 's,.*compileSdkVersion\s*\([0-9][0-9]*\).*,\1,p' app/build.gradle` + - echo y | android --silent update sdk --no-ui --filter android-${ANDROID_COMPILE_SDK} test: script: @@ -32,6 +34,7 @@ connected10: variables: AVD_SDK: "10" script: + - ./gradlew assembleDebug -PdisablePreDex - emulator64-arm -avd fcl-test-$AVD_SDK -no-skin -no-audio -no-window & - ./tools/wait-for-emulator - adb shell input keyevent 82 & @@ -53,7 +56,8 @@ connected24: variables: AVD_SDK: "24" script: - - emulator64-arm -avd fcl-test-$AVD_SDK -no-skin -no-audio -no-window & + - ./gradlew assembleDebug -PdisablePreDex + - emulator64-arm -avd fcl-test-$AVD_SDK -no-audio -no-window & - ./tools/wait-for-emulator - adb shell input keyevent 82 & - export EXITVALUE=0 @@ -69,7 +73,6 @@ connected24: cat "$log" | curl --silent -F 'clbin=<-' https://clbin.com; done - exit $EXITVALUE - allow_failure: true after_script: # this file changes every time but should not be cached