Skip to content

Commit

Permalink
rework travis and tox setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Sep 29, 2016
1 parent cb30dd1 commit 3371e0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
sudo: required
services:
- docker

addons:
apt:
sources:
- deadsnakes
packages:
- python3.5
language: python
python: 2.7
env:
- TOX_ENV=py35
- TOX_ENV=py34
- TOX_ENV=py27
- TOX_ENV=pep8
- TOX_ENV=docs
- TOX_ENV=noop_py
- TOX_ENV=noop_cli
- TOX_ENV=py_func
- TOX_ENV=cli_func
install:
- pip install tox
script:
- tox -e $TOX_ENV
after_success:
if [ "$TOX_ENV" = "noop_py" ]; then ./tools/py_functional_tests.sh; elif [ "$TOX_ENV" = "noop_cli" ]; then ./tools/functional_tests.sh; fi
12 changes: 4 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ commands = python setup.py build_sphinx
commands =
python setup.py testr --slowest --coverage --testr-args="{posargs}"

[testenv:noop_cli]
usedevelop = True
install_command = true {opts} {packages}
commands = true
[testenv:cli_func]
commands = {toxinidir}/tools/functional_tests.sh

[testenv:noop_py]
usedevelop = True
install_command = true {opts} {packages}
commands = true
[testenv:py_func]
commands = {toxinidir}/tools/py_functional_tests.sh

0 comments on commit 3371e0e

Please sign in to comment.