Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
沉迷打码的小凳子
glide
提交
34f797ba
G
glide
项目概览
沉迷打码的小凳子
/
glide
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
glide
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
34f797ba
编写于
11月 02, 2014
作者:
S
Sam Judd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add jacoco coverage report.
上级
767087d4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
42 addition
and
0 deletion
+42
-0
.travis.yml
.travis.yml
+1
-0
build.gradle
build.gradle
+1
-0
gradle.properties
gradle.properties
+1
-0
library/build.gradle
library/build.gradle
+39
-0
未找到文件。
.travis.yml
浏览文件 @
34f797ba
...
@@ -9,3 +9,4 @@ script: 'travis_retry ./gradlew build --parallel'
...
@@ -9,3 +9,4 @@ script: 'travis_retry ./gradlew build --parallel'
after_success
:
after_success
:
-
scripts/travis-sonatype-publish.sh
-
scripts/travis-sonatype-publish.sh
-
./gradlew jacocoTestReport coveralls
build.gradle
浏览文件 @
34f797ba
...
@@ -10,6 +10,7 @@ buildscript {
...
@@ -10,6 +10,7 @@ buildscript {
dependencies
{
dependencies
{
classpath
"org.robolectric:robolectric-gradle-plugin:${ROBOLECTRIC_GRADLE_VERSION}"
classpath
"org.robolectric:robolectric-gradle-plugin:${ROBOLECTRIC_GRADLE_VERSION}"
classpath
"com.android.tools.build:gradle:${ANDROID_GRADLE_VERSION}"
classpath
"com.android.tools.build:gradle:${ANDROID_GRADLE_VERSION}"
classpath
"org.kt3k.gradle.plugin:coveralls-gradle-plugin:${COVERALLS_GRADLE_VERSION}"
}
}
}
}
...
...
gradle.properties
浏览文件 @
34f797ba
...
@@ -21,6 +21,7 @@ OK_HTTP_VERSION=2.0.0
...
@@ -21,6 +21,7 @@ OK_HTTP_VERSION=2.0.0
ANDROID_GRADLE_VERSION
=
0.13.3
ANDROID_GRADLE_VERSION
=
0.13.3
ROBOLECTRIC_GRADLE_VERSION
=
0.12.0
ROBOLECTRIC_GRADLE_VERSION
=
0.12.0
COVERALLS_GRADLE_VERSION
=
2.0.1
JUNIT_VERSION
=
4.11
JUNIT_VERSION
=
4.11
MOCKITO_VERSION
=
1.9.5
MOCKITO_VERSION
=
1.9.5
ROBOLECTRIC_VERSION
=
2.4-SNAPSHOT
ROBOLECTRIC_VERSION
=
2.4-SNAPSHOT
...
...
library/build.gradle
浏览文件 @
34f797ba
...
@@ -3,10 +3,18 @@ apply plugin: 'robolectric'
...
@@ -3,10 +3,18 @@ apply plugin: 'robolectric'
apply
plugin:
'maven'
apply
plugin:
'maven'
apply
plugin:
'findbugs'
apply
plugin:
'findbugs'
apply
plugin:
'pmd'
apply
plugin:
'pmd'
apply
plugin:
'jacoco'
apply
plugin:
'com.github.kt3k.coveralls'
findbugs
{
findbugs
{
toolVersion
=
"2.0.3"
toolVersion
=
"2.0.3"
}
}
jacoco
{
toolVersion
=
"0.7.1.201405082137"
}
coveralls
{
jacocoReportPath
=
'build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml'
}
dependencies
{
dependencies
{
compile
project
(
':third_party:gif_decoder'
)
compile
project
(
':third_party:gif_decoder'
)
...
@@ -36,6 +44,12 @@ android {
...
@@ -36,6 +44,12 @@ android {
versionCode
=
VERSION_CODE
versionCode
=
VERSION_CODE
versionName
=
VERSION_NAME
versionName
=
VERSION_NAME
}
}
buildTypes
{
debug
{
testCoverageEnabled
=
true
}
}
}
}
afterEvaluate
{
afterEvaluate
{
...
@@ -86,4 +100,29 @@ afterEvaluate {
...
@@ -86,4 +100,29 @@ afterEvaluate {
}
}
check
.
dependsOn
(
'pmd'
)
check
.
dependsOn
(
'pmd'
)
task
jacocoTestReport
(
type:
JacocoReport
,
dependsOn:
testDebug
)
{
def
coverageSourceDirs
=
[
'src/main/java'
]
group
=
"Reporting"
description
=
"Generate Jacoco coverage reports"
classDirectories
=
fileTree
(
dir:
'build/intermediates/classes/debug'
,
excludes:
[
'**/R.class'
,
'**/R$*.class'
,
'**/*$ViewInjector*.*'
,
'**/BuildConfig.*'
,
'**/Manifest*.*'
]
)
additionalSourceDirs
=
files
(
coverageSourceDirs
)
sourceDirectories
=
files
(
coverageSourceDirs
)
executionData
=
files
(
'build/jacoco/testDebug.exec'
)
reports
{
xml
.
enabled
=
true
html
.
enabled
=
true
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录