Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
门心叼龙
flexbox-layout
提交
1874afa7
F
flexbox-layout
项目概览
门心叼龙
/
flexbox-layout
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
flexbox-layout
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
1874afa7
编写于
11月 30, 2017
作者:
T
Takeshi Hagikura
提交者:
GitHub
11月 30, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Migrate CircleCI 2.0 (#385)
Migrate to CircleCI 2.0
上级
4580bf28
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
43 addition
and
43 deletion
+43
-43
.circleci/config.yml
.circleci/config.yml
+43
-0
circle.yml
circle.yml
+0
-43
未找到文件。
.circleci/config.yml
0 → 100644
浏览文件 @
1874afa7
version
:
2
jobs
:
build
:
working_directory
:
~/code
docker
:
-
image
:
circleci/android:api-27-alpha
environment
:
JVM_OPTS
:
-Xmx3200m
MAX_RETRY
:
4
steps
:
-
checkout
-
restore_cache
:
key
:
jars-{{ checksum "build.gradle" }}-{{ checksum "flexbox/build.gradle" }}
-
run
:
name
:
Download Dependencies
command
:
./gradlew androidDependencies
-
run
:
name
:
Set up gcloud service key
command
:
|
if [ -n "$GCLOUD_SERVICE_KEY" ]; then echo ${GCLOUD_SERVICE_KEY} | base64 --decode > ${HOME}/client-secret.json ;
gcloud config set project ${GCLOUD_PROJECT} ;
gcloud auth activate-service-account ${GCLOUD_SERVICE_ACCOUNT} --key-file ${HOME}/client-secret.json ;
fi
-
save_cache
:
paths
:
-
~/.gradle
key
:
jars-{{ checksum "build.gradle" }}-{{ checksum "flexbox/build.gradle" }}
-
run
:
name
:
Build apks
command
:
./gradlew build assembleAndroidTest
-
run
:
name
:
Run Firebase Test Lab
command
:
|
if [ -n "$GCLOUD_SERVICE_KEY" ]; then set +e ;
counter=0 ;
result=1 ;
while [ $result != 0 -a $counter -lt $MAX_RETRY ]; do
gcloud firebase test android run --type instrumentation --app demo-playground/build/outputs/apk/demo-playground-debug.apk --test flexbox/build/outputs/apk/flexbox-debug-androidTest.apk --device-ids hammerhead,sailfish --os-version-ids 19,21,23,24,25,26 --locales en --orientations portrait,landscape --results-bucket ${GCLOUD_TEST_BUCKET_LIBRARY} --timeout 180s ;
result=$? ;
let counter=counter+1 ;
done
exit $result ;
fi
circle.yml
已删除
100644 → 0
浏览文件 @
4580bf28
machine
:
environment
:
MAX_RETRY
:
4
java
:
version
:
oraclejdk8
dependencies
:
pre
:
-
echo y | android update sdk --no-ui --all --filter "android-26,build-tools-26.0.0,tools,platform-tools,extra-android-m2repository"
cache_directories
:
-
~/.android
override
:
-
./gradlew dependencies
post
:
-
>
if [ -n "$GCLOUD_SERVICE_KEY" ]; then echo ${GCLOUD_SERVICE_KEY} | base64 --decode > ${HOME}/client-secret.json ;
gcloud config set project ${GCLOUD_PROJECT} ;
sudo /opt/google-cloud-sdk/bin/gcloud --quiet components update ;
sudo /opt/google-cloud-sdk/bin/gcloud --quiet components install beta ;
gcloud auth activate-service-account ${GCLOUD_SERVICE_ACCOUNT} --key-file ${HOME}/client-secret.json ;
fi
test
:
override
:
-
./gradlew build assembleAndroidTest
# Suppress running the instrumentation tests if the PR is from a forked repository
# because environment variables configured from the Circle CI UI are not
# visible for the PRs from forked repositories that are required to run the tests
# on the Firebase Test Lab.
-
>
if [ -n "$GCLOUD_SERVICE_KEY" ]; then set +e ;
counter=0 ;
result=1 ;
while [ $result != 0 -a $counter -lt $MAX_RETRY ]; do
gcloud firebase test android run --type instrumentation --app demo-playground/build/outputs/apk/demo-playground-debug.apk --test flexbox/build/outputs/apk/flexbox-debug-androidTest.apk --device-ids hammerhead,herolte --os-version-ids 19,21,23,24,25 --locales en --orientations portrait,landscape --results-bucket ${GCLOUD_TEST_BUCKET_LIBRARY} --timeout 180s ;
result=$? ;
let counter=counter+1 ;
done
exit $result ;
fi
post
:
-
if [ -n "$GCLOUD_SERVICE_KEY" ]; then gsutil -m cp -r -U `gsutil ls gs://${GCLOUD_TEST_BUCKET_LIBRARY} | tail -1` $CIRCLE_ARTIFACTS/ |
true
; fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录