Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
ATimelessClassic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸大学计算机学院
教师群组
宋海霞-shx
androidTest
tempgetwholesdk
ATimelessClassic
提交
cabff190
提交
cabff190
10月 14, 2020
创建
作者:
宋海霞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加新文件
上级
b7080290
流水线
#125632
已取消 于阶段
用时 6 分 30 秒
变更
1
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
107 行增加
和
0 行删除
+107
-0
.gitlab-ci.yml
.gitlab-ci.yml
+107
-0
没有找到文件。
.gitlab-ci.yml
0 → 100644
浏览文件 @
cabff190
image
:
"
android-container:10.1"
#image: "registry.cn-hangzhou.aliyuncs.com/engintime/android-container:latest"
before_script
:
-
ln -sf /cache_ln/cache/caches /cache/caches
-
ln -sf /cache_ln/cache/daemon /cache/daemon
-
ln -sf /cache_ln/cache/kotlin-profile /cache/kotlin-profile
-
ln -sf /cache_ln/cache/motifications /cache/motifications
-
ln -sf /cache_ln/cache/native /cache/native
-
ln -sf /cache_ln/cache/notifications /cache/notifications
-
ln -sf /cache_ln/cache/wrapper /cache/wrapper
-
chmod +x ./gradlew
stages
:
-
case1
-
code-analysis
.codecode-runner
:
&codecode-runner
tags
:
-
ubuntu-16.04
-
long-job
-
android-app
.codecode-analysis-runner
:
&codecode-analysis-runner
tags
:
-
ubuntu-16.04
-
long-job
-
android-app
# - code-analysis
case1
:
stage
:
case1
<<
:
*codecode-runner
script
:
-
./gradlew assembleDebug --offline --build-cache
-
>
echo
echo "==========================================="
echo "exec-score 60"
echo "==========================================="
-
avdmanager 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 host -accel on -noaudio -no-snapshot-save -dns-server 8.8.8.8,8.8.4.4 -netfast -nojni &
-
/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
-
sleep 3; adb shell input keyevent 66
-
adb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS
# - ./gradlew cAT --offline
# - ./gradlew app:connectedAndroidTest -P android.testInstrumentationRunnerArguments.class=net.codecode.kingskills.Work1Test#work1Test --offline --build-cache
-
>
echo
echo "==========================================="
echo "exec-score 80"
echo "==========================================="
# - ./gradlew app:connectedAndroidTest -P android.testInstrumentationRunnerArguments.class=net.codecode.kingskills.Work2Test#work2Test --offline --build-cache
-
>
echo
echo "==========================================="
echo "exec-score 100"
echo "==========================================="
teacher-check1
:
image
:
"
registry.cn-hangzhou.aliyuncs.com/engintime/alpine_git:latest"
stage
:
case1
<<
:
*codecode-runner
before_script
:
[]
script
:
-
git clone ${CODECODE_PROTOCOL}gitlab-ci-token:${CI_JOB_TOKEN}@${CODECODE_DOMAIN}/${CI_PROJECT_FORKSOURCE} template
-
diff template/.gitlab-ci.yml .gitlab-ci.yml -b -B -y -i --suppress-common-lines
-
diff template/app/src/androidTest/java/net/codecode/consciencefood/ExampleInstrumentedTest.kt app/src/androidTest/java/net/codecode/consciencefood/ExampleInstrumentedTest.kt -b -B -y -i --suppress-common-lines
-
fileidentity.sh
only
:
-
master
when
:
manual
allow_failure
:
true
code-analysis
:
# image: "registry.cn-hangzhou.aliyuncs.com/engintime/ubuntu_16.04_program:latest"
stage
:
code-analysis
<<
:
*codecode-analysis-runner
script
:
-
./gradlew assembleDebug --offline
-
sonar-scanner -X -Dsonar.projectKey=ProjectKey-$CI_PROJECT_ID -Dsonar.projectName=$CI_PROJECT_NAME -Dsonar.links.homepage=$CI_PROJECT_URL -Dsonar.host.url=http://39.104.162.212:9000 -Dsonar.login=$SONAR_LOGIN -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.url=$CODECODE_PROTOCOL$CODECODE_DOMAIN
# - ./waitfinish.sh
allow_failure
:
true
only
:
-
master
\ No newline at end of file
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论