提交 f728c5be 创建 作者: Greyson Parrelli's avatar Greyson Parrelli

test

上级 1e21b5be
image: openjdk:8-jdk
variables:
ANDROID_TARGET_SDK: "25"
ANDROID_TARGET_SDK: "19"
ANDROID_BUILD_TOOLS: "24.0.0"
ANDROID_SDK_TOOLS: "24.4.1"
......@@ -17,32 +17,20 @@ before_script:
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
- export ANDROID_HOME=$PWD/android-sdk-linux
- export PATH=$PATH:/android-sdk-linux/platform-tools/
- chmod +x ./gradlew
stages:
- build
- test
build:
stage: build
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/
unitTests:
stage: test
script:
- ./gradlew test
functionalTests:
stage: test
script:
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter sys-img-x86-google_apis-${ANDROID_TARGET_SDK}
- android-sdk-linux/tools/android create avd -n test -t android-25
- wget --quiet --output-document=android-wait-for-emulator https://raw.githubusercontent.com/travis-ci/travis-cookbooks/0f497eb71291b52a703143c5cd63a217c8766dc9/community-cookbooks/android-sdk/files/default/android-wait-for-emulator
- chmod +x android-wait-for-emulator
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter sys-img-armeabi-v7a-android-${ANDROID_TARGET_SDK}
- echo no | android-sdk-linux/tools/android create avd -n test -t android-${ANDROID_TARGET_SDK}
- android-sdk-linux/tools/emulator -avd test -no-skin -no-audio -no-window -force-32bit &
- ./android-wait-for-emulator
- adb shell input keyevent 82 &
- ./gradlew cAT
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论