提交 74630c8b 创建 作者: 宋海霞's avatar 宋海霞

更新 .gitlab-ci.yml

上级 edef8cbc
流水线 #118739 已通过 于阶段
用时 3 分 28 秒
......@@ -27,7 +27,6 @@ before_script:
stages:
- build
- test
.codecode-runner: &codecode-runner
......@@ -45,28 +44,4 @@ build:
# - ./gradlew app:connectedAndroidTest
# - ./gradlew --debug --scan assembleDebug
- ./start.sh
artifacts:
paths:
- app/build/outputs/
unitTests:
stage: test
<<: *codecode-runner
script:
- ./gradlew test
functionalTests:
stage: test
<<: *codecode-runner
script:
- 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-x86-google_apis-${ANDROID_COMPILE_SDK}
- echo no | android-sdk-linux/tools/android create avd -n test -t android-${ANDROID_COMPILE_SDK} --abi google_apis/x86
- android-sdk-linux/tools/emulator64-x86 -avd test -no-window -no-audio &
# - ./android-wait-for-emulator
# - adb shell input keyevent 82
# - ./gradlew cAT
artifacts:
paths:
- app/build/reports/androidTests/
\ No newline at end of file
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论