Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Use tox-travis for test builds on TravisCI, update tox.ini accordingly
  • Loading branch information
poikilotherm committed Nov 3, 2017
commit 2724a10a7eb9af6fa60fe8750ad1a4a4d6b094c8
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
sudo: required
language: python

services:
- docker
before_script:
Expand All @@ -12,12 +10,14 @@ after_script:
notifications:
email: false
install:
- pip install tox
- pip install tox-travis
cache: pip

language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
script:
- tox -e py27
- tox -e py34
- tox -e py35
- tox -e py36
- tox -e flake8
- tox
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pytest
pep8
codecov
python-dotenv
32 changes: 25 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
[tox]
envlist = py{27,34,35,36}, flake8
skip_missing_interpreters = true
envlist = py{27,34,35,36},flake8

[testenv]
deps = pytest
python-dotenv
commands = py.test {posargs}
passenv = VCAP_SERVICES
commands = py.test -v
deps = -r{toxinidir}/requirements-dev.txt
passenv =
TRAVIS
TRAVIS_BRANCH
TRAVIS_JOB_ID
VCAP_SERVICES

[testenv:flake8]
commands = flake8 .
deps = flake8
commands = flake8 .

[travis]
python =
3.6: py36, flake8

[pytest]
addopts = --ignore=setup.py
python_files = *.py
python_functions = test_

[flake8]
exclude =
.git,
.tox,
build,
dist