Merge branch 'gitlab-ci-update' into 'master'

Gitlab ci update

See merge request !449
This commit is contained in:
Peter Serwylo 2017-03-20 07:05:13 +00:00
commit dcf41bcdf2

View File

@ -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