Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
5619509c
Commit
5619509c
authored
Sep 27, 2016
by
Jim Fulton
Committed by
GitHub
Sep 27, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #120 from zopefoundation/coveralls
Enable using coverage and coveralls for coverage reporting.
parents
bdecbf61
d797b193
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
9 deletions
+28
-9
.coveragerc
.coveragerc
+5
-4
.gitignore
.gitignore
+2
-0
.travis.yml
.travis.yml
+11
-2
buildout.cfg
buildout.cfg
+10
-3
No files found.
.coveragerc
View file @
5619509c
[run]
[run]
# source = ...
source = src/ZODB/
# omit = ...
parallel = true
# cover_pylib = False
omit =
# branch = True
src/ZODB/tests/*
src/ZODB/scripts/tests/*
[report]
[report]
exclude_lines =
exclude_lines =
...
...
.gitignore
View file @
5619509c
...
@@ -18,3 +18,5 @@ dist
...
@@ -18,3 +18,5 @@ dist
testing.log
testing.log
.eggs/
.eggs/
.dir-locals.el
.dir-locals.el
htmlcov
tmp
.travis.yml
View file @
5619509c
...
@@ -16,13 +16,22 @@ matrix:
...
@@ -16,13 +16,22 @@ matrix:
-
os
:
linux
-
os
:
linux
python
:
3.5
python
:
3.5
install
:
install
:
-
pip install -U pip
-
pip install zc.buildout
-
pip install zc.buildout
-
buildout $BUILOUT_OPTIONS
-
buildout $BUILOUT_OPTIONS
script
:
script
:
-
bin/test -v1j99
-
if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then bin/coverage run bin/coverage-test -v1j99; fi
-
if [[ $TRAVIS_PYTHON_VERSION != 'pypy3' ]]; then cd doc; make html; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 'pypy' || $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then bin/test -v1j99; fi
-
if [[ $TRAVIS_PYTHON_VERSION != 'pypy3' ]]; then pushd doc; make html; popd; fi
-
if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pip install coveralls; fi
# install early enough to get into the cache
after_success
:
-
if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then bin/coverage combine; fi
-
if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coveralls; fi
notifications
:
notifications
:
email
:
false
email
:
false
cache
:
cache
:
directories
:
directories
:
-
$HOME/.cache/pip
-
eggs
-
eggs
before_cache
:
-
rm -f $HOME/.cache/pip/log/debug.log
buildout.cfg
View file @
5619509c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
develop = .
develop = .
parts =
parts =
test
test
coverage-test
scripts
scripts
sphinx
sphinx
...
@@ -22,13 +23,18 @@ defaults = ['--all']
...
@@ -22,13 +23,18 @@ defaults = ['--all']
[coverage-test]
[coverage-test]
recipe = zc.recipe.testrunner
recipe = zc.recipe.testrunner
eggs = ${test:eggs}
working-directory = .
eggs =
${test:eggs}
coverage
initialization =
initialization =
import os, tempfile
import os, tempfile
try: os.mkdir('tmp')
try: os.mkdir('tmp')
except: pass
except: pass
tempfile.tempdir = os.path.abspath('tmp')
tempfile.tempdir = os.path.abspath('tmp')
defaults = ['--coverage', '${buildout:directory}/coverage']
if 'COVERAGE_PROCESS_START' not in os.environ: os.environ['COVERAGE_PROCESS_START'] = '.coveragerc'
else: import coverage; coverage.process_startup()
defaults = ['--all']
[coverage-report]
[coverage-report]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
...
@@ -39,7 +45,8 @@ arguments = ('${buildout:directory}/coverage',
...
@@ -39,7 +45,8 @@ arguments = ('${buildout:directory}/coverage',
[scripts]
[scripts]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
eggs = ${test:eggs}
eggs =
${coverage-test:eggs}
interpreter = py
interpreter = py
[sphinx]
[sphinx]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment