Skip to content

Commit

Permalink
Run more tests in travis
Browse files Browse the repository at this point in the history
Travis has some limitations so this patch sets up some tricks to run the
functional tests.
  • Loading branch information
Gauvain Pocentek committed Aug 8, 2016
1 parent fa75571 commit f82f962
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
@@ -1,10 +1,19 @@
sudo: required
services:
- docker

language: python
python: 2.7
env:
- TOX_ENV=py34
- TOX_ENV=py27
- TOX_ENV=pep8
- TOX_ENV=docs
- TOX_ENV=noop_py
- TOX_ENV=noop_cli
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
11 changes: 11 additions & 0 deletions tox.ini
Expand Up @@ -5,6 +5,7 @@ envlist = py35,py34,py27,pep8

[testenv]
setenv = VIRTUAL_ENV={envdir}
whitelist_externals = true
usedevelop = True
install_command = pip install {opts} {packages}

Expand All @@ -30,3 +31,13 @@ commands = python setup.py build_sphinx
[testenv:cover]
commands =
python setup.py testr --slowest --coverage --testr-args="{posargs}"

[testenv:noop_cli]
usedevelop = True
install_command = true {opts} {packages}
commands = true

[testenv:noop_py]
usedevelop = True
install_command = true {opts} {packages}
commands = true

0 comments on commit f82f962

Please sign in to comment.