3 Star 0 Fork 0

Gitee 极速下载 / pootle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/translate/pootle
克隆/下载
run_coveralls.py 1014 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
# This file was cribbed from https://github.com/brechtm/citeproc-py
import os
from distutils.sysconfig import get_python_lib
from subprocess import call
if __name__ == '__main__':
# chdir to the site-packages directory so the report lists relative paths
orig_dir = os.getcwd()
dot_coverage_path = os.path.join(orig_dir, '.coverage')
os.chdir(get_python_lib())
try:
os.remove('.coverage')
except OSError:
pass
os.symlink(dot_coverage_path, '.coverage')
# create a report from the coverage data
if 'TRAVIS' in os.environ:
rc = call('coveralls')
raise SystemExit(0)
else:
rc = call(['coverage', 'report'])
raise SystemExit(rc)
1
https://gitee.com/mirrors/pootle.git
git@gitee.com:mirrors/pootle.git
mirrors
pootle
pootle
master

搜索帮助