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

更新 .gitlab-ci.yml

上级 47de31d6
流水线 #119194 已取消 于阶段
...@@ -27,15 +27,20 @@ build: ...@@ -27,15 +27,20 @@ build:
- > - >
echo "" echo ""
echo "First command line echo "*******************************************"
is split over two lines." echo "exec-score 100"
echo "*******************************************"
echo "Second command line."
# - ls /cache/wrapper/dists/gradle-6.6-all/dm6whvs5m6hlkbnc6ae2jubui # - ls /cache/wrapper/dists/gradle-6.6-all/dm6whvs5m6hlkbnc6ae2jubui
# - export # - export
- ./gradlew assembleDebug --offline - ./gradlew assembleDebug --offline
- >
echo ""
echo "*******************************************"
echo "exec-score 60"
echo "*******************************************"
- avdmanager --verbose create avd --force --name "test" --device "pixel" --package "system-images;android-30;google_apis;x86" > /dev/null - 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 & - 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
...@@ -50,9 +55,19 @@ build: ...@@ -50,9 +55,19 @@ build:
# - sleep 30s # - sleep 30s
# - ./gradlew cAT --offline # - ./gradlew cAT --offline
- ./gradlew app:connectedAndroidTest -P android.testInstrumentationRunnerArguments.class=com.example.mysecondapp.ExampleInstrumentedTest#useAppContext --offline - ./gradlew app:connectedAndroidTest -P android.testInstrumentationRunnerArguments.class=com.example.mysecondapp.ExampleInstrumentedTest#useAppContext --offline
- echo "score 60" - >
echo ""
echo "*******************************************"
echo "exec-score 60"
echo "*******************************************"
- ./gradlew app:connectedAndroidTest -P android.testInstrumentationRunnerArguments.class=com.example.mysecondapp.ExampleKotlinTest#useEspressoTest --offline - ./gradlew app:connectedAndroidTest -P android.testInstrumentationRunnerArguments.class=com.example.mysecondapp.ExampleKotlinTest#useEspressoTest --offline
- echo "score 100" - >
echo ""
echo "*******************************************"
echo "exec-score 100"
echo "*******************************************"
# artifacts: # artifacts:
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论