Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
69 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[MESSAGES CONTROL] | ||
# import-error and no-name-in-module are false positives for six.moves, pylint | ||
# really hates that. If it's really broken, we'll pick it up in tests. | ||
disable=locally-disabled,import-error,no-name-in-module,invalid-name,missing-docstring,wrong-import-order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,34 @@ | ||
language: python | ||
python: 3.5 # 3.5 requires manual download, so it needs to be selected | ||
cache: pip | ||
|
||
env: | ||
- TOXENV=py27 | ||
- TOXENV=py34 | ||
- TOXENV=py35 | ||
- TOXENV=coverage | ||
python: | ||
- '2.7' | ||
- '3.3' | ||
- '3.4' | ||
- '3.5' | ||
- '3.6' | ||
|
||
# Allowed to fail | ||
- '3.7-dev' | ||
- 'nightly' | ||
|
||
install: pip install tox | ||
script: tox | ||
|
||
script: | ||
- 'tox' | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- python: '3.7-dev' | ||
- python: 'nightly' | ||
include: | ||
# One-off runs | ||
- python: '3.6' | ||
env: TOXENV=coverage | ||
- python: '3.5' # 3.6 after https://github.com/PyCQA/pylint/issues/1113 | ||
env: TOXENV=pylint | ||
|
||
# This is required to enable container based Travis CI infrastructure. | ||
# See http://docs.travis-ci.com/user/migrating-from-legacy/ | ||
sudo: false | ||
|
||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
[tox] | ||
envlist = py27,py34,py35 | ||
envlist = system | ||
|
||
[testenv] | ||
deps= | ||
basepython = python | ||
deps = | ||
-rrequirements.txt | ||
-rtests/requirements.txt | ||
commands= | ||
nosetests | ||
commands = | ||
nosetests -v | ||
|
||
[testenv:system] | ||
|
||
[testenv:coverage] | ||
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH | ||
basepython=python3.5 | ||
deps= | ||
-rtests/requirements.txt | ||
deps = | ||
{[testenv]deps} | ||
coveralls | ||
commands= | ||
nosetests --with-coverage --cover-package=tzupdate | ||
commands = | ||
coverage erase | ||
nosetests -v --with-coverage --cover-branches --cover-package=tzupdate | ||
coveralls | ||
|
||
[testenv:quick] | ||
basepython=python | ||
[testenv:pylint] | ||
skipsdist = True | ||
deps = | ||
{[testenv]deps} | ||
pylint | ||
commands = | ||
pylint tzupdate.py | ||
|
||
[testenv:windows] | ||
basepython = {env:PYTHON:}\python.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters