Skip to content

Commit 3d6be17

Browse files
committed
Use tox for testing
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 3838eba commit 3d6be17

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
language: python
22

3-
python:
4-
- "2.7"
5-
- "3.6"
6-
73
install:
84
- ./configure etc/conf/dev
5+
- bin/pip install tox
96

107
script:
11-
- bin/py.test -vvs
8+
- tox
129

1310
notifications:
1411
irc:

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ license_file = NOTICE
88
release = clean --all sdist --formats=bztar,zip bdist_wheel
99

1010
[tool:pytest]
11+
12+
testpaths = src tests/
13+
1114
norecursedirs =
1215
.git
1316
.cache

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[tox]
2+
envlist = py{27,36}
3+
4+
[testenv]
5+
deps = pytest
6+
mock
7+
commands = {posargs:pytest} -vvs
8+
9+
[pytest]
10+
testpaths = src tests/
11+

0 commit comments

Comments
 (0)