Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
MySecondApp
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
1
问题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸大学计算机学院
教师群组
宋海霞-shx
androidTest
MySecondApp
提交
a7ba4541
提交
a7ba4541
8月 19, 2020
创建
作者:
宋海霞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新 .gitlab-ci.yml
上级
bd12196a
流水线
#118835
已失败 于阶段
用时 5 分 31 秒
变更
1
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
27 行删除
+12
-27
.gitlab-ci.yml
.gitlab-ci.yml
+12
-27
没有找到文件。
.gitlab-ci.yml
浏览文件 @
a7ba4541
#image: openjdk:8-jdk
image
:
"
android-container:8.2"
#image: "registry.cn-hangzhou.aliyuncs.com/engintime/ubuntu_16.04_program:latest"
image
:
"
android-container:7.3"
variables
:
variables
:
ANDROID_COMPILE_SDK
:
"
25"
#
ANDROID_COMPILE_SDK: "25"
ANDROID_BUILD_TOOLS
:
"
24.0.0"
#
ANDROID_BUILD_TOOLS: "24.0.0"
ANDROID_SDK_TOOLS
:
"
24.4.1"
#
ANDROID_SDK_TOOLS: "24.4.1"
before_script
:
before_script
:
# - apt-get --quiet update --yes
# - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
# - wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r${ANDROID_SDK_TOOLS}-linux.tgz
# - tar --extract --gzip --file=android-sdk.tgz
# - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK}
# - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools
# - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS}
# - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
# - 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:$PWD/android-sdk-linux/platform-tools/
-
chmod +x ./gradlew
-
chmod +x ./gradlew
-
chmod +x ./android-wait-for-emulator.sh
-
chmod +x ./android-wait-for-emulator.sh
...
@@ -39,17 +25,16 @@ build:
...
@@ -39,17 +25,16 @@ build:
stage
:
build
stage
:
build
<<
:
*codecode-runner
<<
:
*codecode-runner
script
:
script
:
-
./gradlew clean assembleDebug
-
ls /cache/wrapper/dists/gradle-6.6-all/dm6whvs5m6hlkbnc6ae2jubui
-
echo "no" | avdmanager --verbose create avd --force --name "test" --device "pixel" --package "system-images;android-30;google_apis;x86"
-
export
-
emulator -avd "test" -verbose -no-boot-anim -no-window -gpu swiftshader_indirect -accel on &
-
./gradlew assembleDebug --offline
-
avdmanager --verbose create avd --force --name "test" --device "pixel" --package "system-images;android-30;google_apis;x86"
-
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
-
./android-wait-for-emulator.sh
-
adb install /builds/engintime-cs/teacher-group/shx/androidTest/MySecondApp/app/build/outputs/apk/debug/app-debug.apk
-
./gradlew cAT --offline
-
adb shell am instrument -w -r -e debug
false
-e class 'com.example.mysecondapp.ExampleKotlinTest' com.example.mysecondapp.test/android.support.test.runner.AndroidJUnitRunner
# - adb shell am instrument -w -r -e debug false -e class 'com.example.mysecondapp.ExampleKotlinTest' com.example.mysecondapp.test/androidx.test.runner.AndroidJUnitRunner
# - ./gradlew cAT
# - cd ./app/build/outputs/apk/debug
# -
artifacts
:
artifacts
:
paths
:
paths
:
-
app/build/reports/androidTests/
-
app/build/reports/androidTests/
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论