Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
门心叼龙
flexbox-layout
提交
ceee6641
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 搜索 >>
提交
ceee6641
编写于
5月 11, 2016
作者:
T
Takeshi Hagikura
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #25 from google/enable_instrumentation_tests
Enable InstrumentationTests on Circle CI Fixes #11
上级
e206556d
2623190a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
39 addition
and
2 deletion
+39
-2
build.gradle
build.gradle
+15
-0
circle.yml
circle.yml
+24
-2
未找到文件。
build.gradle
浏览文件 @
ceee6641
...
...
@@ -49,3 +49,18 @@ allprojects {
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
}
// This allows to disable pre dexing. If not disabled, it makes each CI build slow
// See https://circleci.com/docs/android/#disable-pre-dexing-to-improve-build-performance
// http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance
project
.
ext
.
preDexLibs
=
!
project
.
hasProperty
(
'disablePreDex'
)
subprojects
{
project
.
plugins
.
whenPluginAdded
{
plugin
->
if
(
"com.android.build.gradle.AppPlugin"
.
equals
(
plugin
.
class
.
name
))
{
project
.
android
.
dexOptions
.
preDexLibraries
=
rootProject
.
ext
.
preDexLibs
}
else
if
(
"com.android.build.gradle.LibraryPlugin"
.
equals
(
plugin
.
class
.
name
))
{
project
.
android
.
dexOptions
.
preDexLibraries
=
rootProject
.
ext
.
preDexLibs
}
}
}
circle.yml
浏览文件 @
ceee6641
machine
:
environment
:
CLOUDSDK_CORE_DISABLE_PROMPTS
:
1
CLOUDSDK_PYTHON_SITEPACKAGES
:
1
CLOUDSDK_INSTALL_DIR
:
/tmp
java
:
version
:
oraclejdk8
dependencies
:
pre
:
-
echo y | android update sdk --no-ui --all --filter "build-tools-23.0.3"
# For some reasons, there is an issue with the pre-installed gcloud that
# PyOpenSSL is not available when trying to activate the service account.
# Re-installing the gcloud worked as a workaround.
# See https://discuss.circleci.com/t/deployment-to-appengine-fails-pyopenssl-not-available/2154
-
sudo apt-get remove python-virtualenv python-openssl python3-openssl
-
sudo apt-get update
-
sudo apt-get install python-openssl python3-openssl
-
sudo rm -rf /opt/google-cloud-sdk/
-
curl https://sdk.cloud.google.com | bash
-
source ~/.bashrc
cache_directories
:
-
~/.android
override
:
-
./gradlew dependencies
post
:
-
echo ${GCLOUD_SERVICE_KEY} | base64 --decode > ${HOME}/client-secret.json
-
/tmp/google-cloud-sdk/bin/gcloud config set project ${GCLOUD_PROJECT}
-
/tmp/google-cloud-sdk/bin/gcloud --quiet components update
-
/tmp/google-cloud-sdk/bin/gcloud --quiet components install beta
-
/tmp/google-cloud-sdk/bin/gcloud auth activate-service-account ${GCLOUD_SERVICE_ACCOUNT} --key-file ${HOME}/client-secret.json
test
:
override
:
# TODO: Enable connectedAndroidTest
-
./gradlew build
-
./gradlew build assembleAndroidTest
-
echo "y" | /tmp/google-cloud-sdk/bin/gcloud beta test android run --type instrumentation --app app/build/outputs/apk/app-debug.apk --test flexbox/build/outputs/apk/flexbox-debug-androidTest-unaligned.apk --device-ids hammerhead,flounder,condor_umts --os-version-ids 19,21,23 --locales en,ar_SS --orientations portrait,landscape --results-bucket ${GCLOUD_TEST_BUCKET_LIBRARY} --timeout 180s
post
:
-
/tmp/google-cloud-sdk/bin/gsutil -m cp -r -U `/tmp/google-cloud-sdk/bin/gsutil ls gs://${GCLOUD_TEST_BUCKET_LIBRARY} | tail -1` $CIRCLE_ARTIFACTS/ |
true
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录