提交 38bc52fb 创建 作者: 宋海霞's avatar 宋海霞

更新 .gitlab-ci.yml

上级 daf2cbca
流水线 #119156 已取消 于阶段
......@@ -9,7 +9,7 @@ variables:
before_script:
- chmod +x ./gradlew
- chmod +x ./android-wait-for-emulator.sh
- chmod +x /android-wait-for-emulator.sh
stages:
- build
......@@ -30,7 +30,7 @@ build:
- ./gradlew assembleDebug
- avdmanager --verbose create avd --force --name "test" --device "pixel" --package "system-images;android-30;google_apis;x86" > /dev/null
- emulator -memory 4096 -timezone Asia/Shang_Hai -avd "test" -no-boot-anim -no-window -gpu swiftshader_indirect -accel on -noaudio -no-snapshot-save -dns-server 8.8.8.8,8.8.4.4 -netfast -nojni &
- ./android-wait-for-emulator.sh 20
- /android-wait-for-emulator.sh 20
- adb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS
- sleep 3; adb shell input keyevent 22
- sleep 3; adb shell input keyevent 22
......@@ -40,9 +40,9 @@ build:
# - sleep 3; adb shell input keyevent 22
# - sleep 3; adb shell input keyevent 66
# - sleep 30s
- ./gradlew cAT
# - ./gradlew cAT
# - echo "score 60"
# - ./gradlew app:connectedAndroidTest -P android.testInstrumentationRunnerArguments.class=com.example.mysecondapp.ExampleKotlinTest#useEspressoTest --offline
- ./gradlew app:connectedAndroidTest -P android.testInstrumentationRunnerArguments.class=com.example.android.architecture.blueprints.todoapp.tasks.AppNavigationTest --offline
# - echo "score 100"
# - ./gradlew app:connectedAndroidTest -P android.testInstrumentationRunnerArguments.class=com.example.mysecondapp.ExampleInstrumentedTest#useAppContext --offline
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论