CI: Use gradlew
This commit is contained in:
parent
714edfb456
commit
7471fed31c
@ -18,17 +18,13 @@ before_script:
|
|||||||
- export PATH="$ANDROID_HOME/build-tools/23.0.2:$PATH"
|
- export PATH="$ANDROID_HOME/build-tools/23.0.2:$PATH"
|
||||||
- echo " == Installing Android emulator images"
|
- echo " == Installing Android emulator images"
|
||||||
- echo y | android -s update sdk --no-ui -a -t android-10
|
- echo y | android -s update sdk --no-ui -a -t android-10
|
||||||
- echo " == Installing Gradle"
|
|
||||||
- wget -q -O gradle.zip https://services.gradle.org/distributions/gradle-2.9-bin.zip
|
|
||||||
- unzip -q gradle.zip
|
|
||||||
- export PATH="$PWD/gradle-2.9/bin:$PATH"
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
- echo " == Running build"
|
- echo " == Running build"
|
||||||
- gradle build
|
- ./gradlew build
|
||||||
- echo " == Running checkstyle"
|
- echo " == Running checkstyle"
|
||||||
- gradle checkstyle
|
- ./gradlew checkstyle
|
||||||
- echo " == Creating Android 2.3.7 emulator"
|
- echo " == Creating Android 2.3.7 emulator"
|
||||||
- echo no | android create avd --force -n fcl-test -t android-10 -b armeabi
|
- echo no | android create avd --force -n fcl-test -t android-10 -b armeabi
|
||||||
- echo " == Starting Android 2.3.7 emulator"
|
- echo " == Starting Android 2.3.7 emulator"
|
||||||
@ -36,6 +32,6 @@ test:
|
|||||||
- ./tools/wait-for-emulator
|
- ./tools/wait-for-emulator
|
||||||
- adb shell input keyevent 82
|
- adb shell input keyevent 82
|
||||||
- echo " == Running Android tests on the 2.3.7 emulator"
|
- echo " == Running Android tests on the 2.3.7 emulator"
|
||||||
- ADB_INSTALL_TIMEOUT=8 gradle connectedCheck || { adb logcat -d '*:W'; exit 1; }
|
- ADB_INSTALL_TIMEOUT=8 ./gradlew connectedCheck || { adb logcat -d '*:W'; exit 1; }
|
||||||
- echo " == Stopping Android 2.3.7 emulator"
|
- echo " == Stopping Android 2.3.7 emulator"
|
||||||
- kill $!
|
- kill $!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user