Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Python_Packaging_Authority
pip
提交
cf6cb877
P
pip
项目概览
镜像
/
Python_Packaging_Authority
/
pip
11 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pip
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cf6cb877
编写于
7月 01, 2014
作者:
D
Donald Stufft
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1910 from dstufft/ugh
Use diff-cover to show the change in coverage
上级
c33fe506
ca38d242
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
3 deletion
+23
-3
.gitignore
.gitignore
+1
-0
.travis/install.sh
.travis/install.sh
+1
-1
.travis/run.sh
.travis/run.sh
+20
-1
tox.ini
tox.ini
+1
-1
未找到文件。
.gitignore
浏览文件 @
cf6cb877
...
...
@@ -8,3 +8,4 @@ MANIFEST
*.py[cod]
*~
.coverage
coverage.xml
.travis/install.sh
浏览文件 @
cf6cb877
...
...
@@ -6,4 +6,4 @@ git config --global user.email "pypa-dev@googlegroups.com"
git config
--global
user.name
"pip"
pip
install
--upgrade
setuptools
pip
install
tox
pip
install
tox
diff_cover
.travis/run.sh
浏览文件 @
cf6cb877
...
...
@@ -7,7 +7,7 @@ set -x
export
LC_CTYPE
=
en_US.UTF-8
# Run the unit tests
tox
--
-m
unit
tox
--
-m
unit
--cov
pip/
--cov-report
xml
# Run our integration tests, typically with pytest-xdist to speed things up
# except on Python 3.2 where it doesn't work quite right.
...
...
@@ -19,3 +19,22 @@ case $TOXENV in
tox
--
-m
integration
-n
8
;;
esac
if
[[
$TRAVIS_PULL_REQUEST
!=
"false"
]]
then
# If this is a pull request then run our diff-cover to get the difference
# in coverage that this PR introduces
if
[
-f
coverage.xml
]
then
git fetch origin
$TRAVIS_BRANCH
:refs/remotes/origin/
$TRAVIS_BRANCH
diff-cover
--compare-branch
=
origin/
$TRAVIS_BRANCH
coverage.xml
fi
else
# If this is not a PR, but is being run against a branch, then just report
# the coverage results for the entire code base.
if
[
-f
.coverage
]
then
coverage report
-m
fi
fi
tox.ini
浏览文件 @
cf6cb877
...
...
@@ -13,7 +13,7 @@ deps =
scripttest>=1.3
https://github.com/pypa/virtualenv/archive/develop.zip
#egg=virtualenv
commands
=
py.test
--
cov
pip/
--cov-report
term-missing
--
timeout
300
[]
py.test
--timeout
300
[]
[testenv:docs]
deps
=
sphinx
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录