Skip to content

Commit 64b1a73

Browse files
committed
Use a testing matrix and run the tests with tox
1 parent 6919730 commit 64b1a73

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.travis.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
language: python
2-
python:
3-
- "2.6"
4-
- "2.7"
5-
- "3.6"
6-
- "pypy"
2+
matrix:
3+
include:
4+
- python: 2.6
5+
env: TOXENV=py26
6+
- python: 3.6
7+
env: TOXENV=py36
8+
- python: pypy
9+
env: TOXENV=pypy
710
install:
8-
- python setup.py install
9-
- pip install -r test_requirements.txt
11+
- pip install tox
1012
script:
11-
- python setup.py test
13+
- tox -e $TOXENV

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tox]
2+
envlist = py27,py36,pypy
3+
skip_missing_interpreters = true
4+
5+
[testenv]
6+
deps = -rtest_requirements.txt
7+
8+
commands = python setup.py test

0 commit comments

Comments
 (0)