-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from jamescooke/test-document-build
Test documentation builds with TravisCI
- Loading branch information
Showing
2 changed files
with
10 additions
and
8 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
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,23 +1,25 @@ | ||
# cmd = run the command line interface (no flake8 installed, just flake8-aaa) | ||
# doc = emulate the documentation build on RTD | ||
# install = Assert that plugin can be installed and run via flake8 in a clean | ||
# venv. Flake8 is called with flake8-aaa installed to lint flake8-aaa's tests | ||
# and the "good" examples (dog fooding). Test requirements do not include | ||
# flake8-aaa - the latest version is installed by tox during testing. | ||
# test = run pytest | ||
# lint = run all linting, including on the test suite | ||
# cmd = run the command line interface (no flake8 installed, just flake8-aaa) | ||
# test = run pytest | ||
|
||
[tox] | ||
envlist = py{35,36}-{install,test,lint,cmd} | ||
envlist = py{35,36}-{install,lint,test,cmd},py35-doc | ||
[testenv] | ||
deps = | ||
doc,lint,test: -rrequirements/test.txt | ||
install: flake8>=3 | ||
test,lint: -rrequirements/test.txt | ||
commands = | ||
cmd: python -m flake8_aaa examples/good/test_account_edit_view.py | ||
cmd: python -m flake8_aaa examples/good/test_django_fakery_factories.py | ||
doc: make doc | ||
install: flake8 --version | ||
install: flake8 tests examples/good | ||
test: pytest tests | ||
lint: make lint | ||
cmd: python -m flake8_aaa examples/good/test_account_edit_view.py | ||
cmd: python -m flake8_aaa examples/good/test_django_fakery_factories.py | ||
test: make test | ||
setenv = IN_TOX = 1 | ||
whitelist_externals = make |