Skip to content

Commit d14cf96

Browse files
committed
Use tox to run tests
tox makes testing extremely easy, see <https://tox.readthedocs.org/en/latest/> for more details. Converted .travis.yml to use it.
1 parent 0b657e8 commit d14cf96

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
language: python
22
python: "2.7"
3-
install: pip install jsonschema
4-
script: bin/jsonschema_suite check
3+
install: pip install tox
4+
script: tox

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,5 @@ Contributing
133133
If you see something missing or incorrect, a pull request is most welcome!
134134

135135
There are some sanity checks in place for testing the test suite. You can run
136-
them with `bin/jsonschema_suite check`. They will be run automatically by
136+
them with `bin/jsonschema_suite check` or `tox`. They will be run automatically by
137137
[Travis CI](https://travis-ci.org/) as well.

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tox]
2+
minversion = 1.6
3+
skipsdist = True
4+
envlist = py27
5+
6+
[testenv]
7+
commands = python bin/jsonschema_suite check
8+
deps = jsonschema

0 commit comments

Comments
 (0)