Skip to content

Commit

Permalink
Spring cleaning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Mar 12, 2019
1 parent 00fd13e commit f4c7d11
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
@@ -1,5 +1,4 @@
language: python
sudo: false
python:
- 2.7
- 3.4
Expand All @@ -9,12 +8,12 @@ python:
- pypy3
install:
- pip install -U pip setuptools
- pip install -U zope.testrunner coverage
- pip install -U zope.testrunner coverage coveralls
- pip install -U -e .[test]
script:
- coverage run -m zope.testrunner --test-path=src
after_success:
- pip install coveralls && coveralls
- coveralls
notifications:
email: false
cache: pip
1 change: 0 additions & 1 deletion MANIFEST.in
@@ -1,4 +1,3 @@
global-include *.mo
include *.rst
include *.txt
include bootstrap.py
Expand Down
7 changes: 3 additions & 4 deletions buildout.cfg
Expand Up @@ -5,8 +5,8 @@ versions = versions

[versions]
# keep in sync with requirements.txt
setuptools = 38.4.0
zc.buildout = 2.10.0
setuptools = 40.8.0
zc.buildout = 2.13.1

[devpython]
recipe = zc.recipe.egg
Expand All @@ -15,6 +15,5 @@ eggs = martian

[test]
recipe = zc.recipe.testrunner
eggs = martian
martian[test]
eggs = martian[test]
defaults = ['-v', '--auto-color']
4 changes: 2 additions & 2 deletions requirements.txt
@@ -1,3 +1,3 @@
# NOTE: versions must be in sync with buildout.cfg
setuptools==38.4.0
zc.buildout==2.10.0
setuptools==40.8.0
zc.buildout==2.13.1
18 changes: 6 additions & 12 deletions tox.ini
@@ -1,6 +1,5 @@
[tox]
envlist =
coverage-clean,
py27,
py34,
py35,
Expand All @@ -10,29 +9,24 @@ envlist =
coverage-report

[testenv]
usedevelop = true
commands =
coverage run --source=martian -m zope.testrunner --test-path=src {posargs:-vc}
setenv =
COVERAGE_FILE=.coverage.{envname}
extras = test
deps =
.[test]
zope.testrunner
coverage

[testenv:coverage-clean]
deps = coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands = coverage erase

[testenv:coverage-report]
basepython = python3.6
deps = coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
coverage erase
coverage combine
coverage report
coverage html
coverage
coverage html --ignore-errors
coverage report --ignore-errors --fail-under=93

0 comments on commit f4c7d11

Please sign in to comment.