Merge branch 'tox-nodilate'
This commit is contained in:
commit
66e227ee61
23
.travis.yml
23
.travis.yml
|
@ -11,30 +11,25 @@ branches:
|
||||||
- /^WIP-.*$/
|
- /^WIP-.*$/
|
||||||
install:
|
install:
|
||||||
- pip install -U pip tox virtualenv codecov
|
- pip install -U pip tox virtualenv codecov
|
||||||
before_script:
|
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then
|
|
||||||
pip install -U flake8 ;
|
|
||||||
flake8 *.py src --count --select=E901,E999,F821,F822,F823 --statistics ;
|
|
||||||
fi
|
|
||||||
script:
|
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 || $TRAVIS_PYTHON_VERSION == 3.4 ]]; then
|
|
||||||
tox -e no-dilate ;
|
|
||||||
else
|
|
||||||
tox -e coverage ;
|
|
||||||
fi
|
|
||||||
after_success:
|
after_success:
|
||||||
- codecov
|
- codecov
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python: 2.7
|
- python: 2.7
|
||||||
|
script: tox -e py27-nodilate
|
||||||
- python: 3.4
|
- python: 3.4
|
||||||
|
script: tox -e py34-nodilate
|
||||||
- python: 3.5
|
- python: 3.5
|
||||||
|
script: tox -e py35-coverage
|
||||||
- python: 3.6
|
- python: 3.6
|
||||||
|
script: tox -e py36-coverage
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
# we don't actually need sudo, but that kicks us onto GCE, which lets
|
|
||||||
# us get xenial
|
|
||||||
sudo: true
|
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
script: tox -e py37-coverage
|
||||||
- python: nightly
|
- python: nightly
|
||||||
|
script: tox -e py-coverage
|
||||||
|
- python: 3.6
|
||||||
|
script: tox -e flake8less
|
||||||
|
env: FLAKE8
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- python: nightly
|
- python: nightly
|
||||||
|
|
29
tox.ini
29
tox.ini
|
@ -4,22 +4,25 @@
|
||||||
# and then run "tox" from this directory.
|
# and then run "tox" from this directory.
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = {py27,py34,py35,py36,py37,pypy,flake8}
|
# useful envs: py27-nodilate, py34-nodilate, py35, py36, py37, pypy, flake8
|
||||||
|
envlist = {py27-nodilate,py34-nodilate,py35,py36,py37}
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
minversion = 2.4.0
|
minversion = 2.4.0
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
extras = dev,dilate
|
extras =
|
||||||
|
nodilate: dev
|
||||||
|
!nodilate: dev, dilate
|
||||||
deps =
|
deps =
|
||||||
pyflakes >= 1.2.3
|
pyflakes >= 1.2.3
|
||||||
|
coverage: coverage
|
||||||
commands =
|
commands =
|
||||||
pyflakes setup.py src
|
pyflakes setup.py src
|
||||||
wormhole --version
|
wormhole --version
|
||||||
python -m wormhole.test.run_trial {posargs:wormhole}
|
!coverage: python -m wormhole.test.run_trial {posargs:wormhole}
|
||||||
|
coverage: coverage run --branch -m wormhole.test.run_trial {posargs:wormhole}
|
||||||
[testenv:no-dilate]
|
coverage: coverage xml
|
||||||
extras = dev
|
|
||||||
|
|
||||||
# on windows, trial is installed as venv/bin/trial.py, not .exe, but (at
|
# on windows, trial is installed as venv/bin/trial.py, not .exe, but (at
|
||||||
# least appveyor) adds .PY to $PATHEXT. So "trial wormhole" might work on
|
# least appveyor) adds .PY to $PATHEXT. So "trial wormhole" might work on
|
||||||
|
@ -29,16 +32,6 @@ extras = dev
|
||||||
# vary on the platform. So we added a small class (wormhole.test.run_trial)
|
# vary on the platform. So we added a small class (wormhole.test.run_trial)
|
||||||
# that does the right import for us.
|
# that does the right import for us.
|
||||||
|
|
||||||
[testenv:coverage]
|
|
||||||
deps =
|
|
||||||
pyflakes >= 1.2.3
|
|
||||||
coverage
|
|
||||||
commands =
|
|
||||||
pyflakes setup.py src
|
|
||||||
wormhole --version
|
|
||||||
coverage run --branch -m wormhole.test.run_trial {posargs:wormhole}
|
|
||||||
coverage xml
|
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
deps = flake8
|
deps = flake8
|
||||||
commands = flake8 src/wormhole
|
commands = flake8 src/wormhole
|
||||||
|
@ -47,3 +40,7 @@ commands = flake8 src/wormhole
|
||||||
ignore = E741,W503,W504
|
ignore = E741,W503,W504
|
||||||
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist
|
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist
|
||||||
max-complexity = 40
|
max-complexity = 40
|
||||||
|
|
||||||
|
[testenv:flake8less]
|
||||||
|
deps = flake8
|
||||||
|
commands = flake8 --select=E901,E999,F821,F822,F823 src/wormhole
|
||||||
|
|
Loading…
Reference in New Issue
Block a user