-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
tox
as test runner + update Travis configuration.
The new test runner is needed as Travis does not know `python2` and `python3`. (BTW I have the same problem on my computer, so I cannot use the previous approach with the Makefile without modifications on my system.) The tests in grammar/test_grammar.py are not run because I was not able to find out how to run `make` in the `grammar` directory before installing the package. See https://tox.readthedocs.io for documentation on tox and https://docs.pytest.org for documentation on pytest. (These tools are widely used in the Python community and would make it easier for contributors to run the tests.) I had to fix two tests to be able to run them successfully.
- Loading branch information
Michael Howitz
committed
Jun 15, 2017
1 parent
223a7b5
commit 2407640
Showing
10 changed files
with
44 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
build/ | ||
*.pyc | ||
.tox/ | ||
.cache/ | ||
*.egg-info/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
language: python | ||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
install: | ||
- pip install tox-travis | ||
script: | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[bdist_wheel] | ||
universal=1 | ||
|
||
[tool:pytest] | ||
norecursedirs = grammar | ||
addopts = tests | ||
python_files = test*.py |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[tox] | ||
envlist = | ||
py27, | ||
py33, | ||
py34, | ||
py35, | ||
py36, | ||
|
||
[testenv] | ||
commands = | ||
pytest | ||
deps = | ||
pytest |