Skip to content

Commit f82f962

Browse files
author
Gauvain Pocentek
committed
Run more tests in travis
Travis has some limitations so this patch sets up some tricks to run the functional tests.
1 parent fa75571 commit f82f962

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1+
sudo: required
2+
services:
3+
- docker
4+
15
language: python
26
python: 2.7
37
env:
48
- TOX_ENV=py34
59
- TOX_ENV=py27
610
- TOX_ENV=pep8
11+
- TOX_ENV=docs
12+
- TOX_ENV=noop_py
13+
- TOX_ENV=noop_cli
714
install:
815
- pip install tox
916
script:
1017
- tox -e $TOX_ENV
18+
after_success:
19+
if [ "$TOX_ENV" = "noop_py" ]; then ./tools/py_functional_tests.sh; elif [ "$TOX_ENV" = "noop_cli" ]; then ./tools/functional_tests.sh; fi

tox.ini

+11
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist = py35,py34,py27,pep8
55

66
[testenv]
77
setenv = VIRTUAL_ENV={envdir}
8+
whitelist_externals = true
89
usedevelop = True
910
install_command = pip install {opts} {packages}
1011

@@ -30,3 +31,13 @@ commands = python setup.py build_sphinx
3031
[testenv:cover]
3132
commands =
3233
python setup.py testr --slowest --coverage --testr-args="{posargs}"
34+
35+
[testenv:noop_cli]
36+
usedevelop = True
37+
install_command = true {opts} {packages}
38+
commands = true
39+
40+
[testenv:noop_py]
41+
usedevelop = True
42+
install_command = true {opts} {packages}
43+
commands = true

0 commit comments

Comments
 (0)