Skip to content

Commit

Permalink
Merge 96b669e into 61240bf
Browse files Browse the repository at this point in the history
  • Loading branch information
espdev committed Dec 30, 2019
2 parents 61240bf + 96b669e commit 1fe3075
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 15 deletions.
23 changes: 17 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
dist: bionic
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"

matrix:
include:
- python: "3.5"
env: TOXENV=py35-pytest
- python: "3.6"
env: TOXENV=py36-pytest
- python: "3.7"
env: TOXENV=py37-pytest-coverage
- python: "3.8"
env: TOXENV=py38-pytest

- python: "3.7"
env: TOXENV=flake8

install:
pip install tox-travis
pip install tox

script:
tox
34 changes: 25 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
[tox]
envlist = py35, py36, py37, py38

[travis]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
envlist = py{35,36,37,38}-pytest-coverage, flake8

[testenv]
deps = pytest
commands = pytest
commands = pytest --color=yes {posargs}

[testenv:py37-pytest-coverage]
usedevelop = true
passenv = TRAVIS TRAVIS_*
deps =
pytest
coverage == 4.5.4
pytest-cov
coveralls
commands =
pytest --cov=csaps --color=yes {posargs}
coveralls

[testenv:flake8]
deps =
flake8
flake8-colors
commands =
flake8 csaps/ tests/ setup.py

[flake8]
max-line-length = 120
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s

0 comments on commit 1fe3075

Please sign in to comment.