Attempt to fix the coverage

master
pbrod 9 years ago
parent 6ce12a8c78
commit 0367a1c0bd

@ -2,7 +2,9 @@
[run]
branch = True
source = wafo
#omit = */xxxx.py
omit =
wafo/test/*
wafo/source/*
[report]
# Regexes for lines to exclude from consideration

41
.gitignore vendored

@ -0,0 +1,41 @@
# Temporary and binary files
*~
*.py[cod]
*.so
*.cfg
!setup.cfg
*.orig
*.log
*.pot
__pycache__/*
.cache/*
.*.swp
# Project files
.ropeproject
.project
.pydevproject
.settings
.idea
# Package files
*.egg
*.eggs/
.installed.cfg
*.egg-info
# Unittest and coverage
htmlcov/*
.coverage
.tox
junit.xml
coverage.xml
# Build and docs folder/files
build/*
dist/*
sdist/*
docs/_rst/*
docs/_build/*
cover/*
MANIFEST

@ -37,7 +37,7 @@ before_install:
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy pytest numdifftools
- pip install coveralls
- python setup.py build
# - python setup.py build
- python setup.py install
# - conda build conda_recipe
# - conda install wafo --use-local

@ -0,0 +1,24 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py27, py32, py33, py34, pypy, report
[testenv]
changedir=tests
deps =
-r./requirements.txt
coverage
coveralls
commands =
coverage run --source=wafo setup.py test
[testenv:report]
basepython = python3.4
commands =
coverage combine
coverage report -m
usedevelop = true
Loading…
Cancel
Save