Skip to content

Commit 6ddaa12

Browse files
author
Emmanouil Konstantinidis
committed
Use tox for tests
1 parent 62f4e17 commit 6ddaa12

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ lib/
1313
lib64/
1414
parts/
1515
sdist/
16+
.tox/
1617
var/
1718
*.egg-info/
1819
.installed.cfg

.travis.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ language: python
22

33
sudo: false
44

5-
python:
6-
- "2.7"
7-
- "3.4"
8-
- "3.5"
5+
env:
6+
- TOX_ENV=py27
7+
- TOX_ENV=py34
8+
- TOX_ENV=py35
9+
10+
matrix:
11+
fast_finish: true
912

1013
before_install:
1114
- pip install codecov
1215

1316
install:
14-
- pip install -r requirements.txt
17+
- pip install tox
1518

1619
script:
17-
- python runtests.py
20+
- tox -e $TOX_ENV
1821

1922
after_success:
2023
- codecov

tox.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[tox]
2+
envlist = py27,py34
3+
4+
[testenv]
5+
setenv =
6+
PYTHONDONTWRITEBYTECODE = 1
7+
deps =
8+
-rrequirements.txt
9+
commands =
10+
pwd
11+
ls -la
12+
python runtests.py

0 commit comments

Comments
 (0)