Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 97 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,132 @@
sudo: false
language: python
os: linux
python:
- 3.4
- 3.5
- 3.6
- &mainstream_python 3.7-dev
- &pypy pypy3.5
install:
- &upgrade_python_toolset pip install --upgrade pip setuptools wheel
- pip install tox-travis
- pip install tox
- pip install coveralls
script: tox
script: []
after_success:
- coveralls

jobs:
fast_finish: true
include:
- stage: test
name: "Python 3.4"
python: 3.4
script:
- tox -e py34
- stage: test
name: "Python 3.4 no coverage"
python: 3.4
script:
- tox -e py34-nocov
after_success: skip

- stage: test
name: "Python 3.5"
python: 3.5
script:
- tox -e py35
- stage: test
name: "Python 3.5 no coverage"
python: 3.5
script:
- tox -e py35-nocov
after_success: skip

- stage: test
name: "Python 3.6"
python: 3.6
script:
- tox -e py36
- stage: test
name: "Python 3.6 no coverage"
python: 3.6
script:
- tox -e py36-nocov
after_success: skip

- stage: test
name: "Python 3.7"
python: 3.7
dist: xenial
sudo: true
script:
- tox -e py37
- stage: test
name: "Python 3.7 no coverage"
python: 3.7
dist: xenial
sudo: true
script:
- tox -e py37-nocov
after_success: skip

- stage: test
name: "PyPy3"
python: pypy3.5
script:
- tox -e pypy3

- stage: Static analisys
name: "PyLint"
python: 3.6
services: []
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox -e pylint,bandit,mypy
- tox -e pylint
after_success: skip
- stage: Static analisys
name: "Bandit"
python: 3.6
services: []
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox -e bandit
after_success: skip
- stage: Static analisys
name: "MyPy"
python: 3.7
dist: xenial
sudo: true
services: []
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox mypy
after_success: skip

- stage: Code style check
python: *mainstream_python
name: "PEP8"
python: 3.6
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox -e pep8
after_success: skip
- stage: Code style check
name: "PEP257"
python: 3.6
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox -e pep8,pep257
- tox -e pep257
after_success: skip

- stage: deploy
# This prevents job from appearing in test plan unless commit is tagged:
if: tag IS present
# Run on pypy to build not cythonized wheel
python: *pypy
python: pypy3.5
services:
- docker
install:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ deps =
pytest-cov
pytest-html
pytest-sugar
py{34,35,36}-nocov: Cython
py{34,35,36,37}-nocov: Cython
-r{toxinidir}/CI_REQUIREMENTS.txt

commands =
Expand Down