Skip to content

Commit

Permalink
Merge pull request #56 from jamescooke/test-document-build
Browse files Browse the repository at this point in the history
Test documentation builds with TravisCI
  • Loading branch information
jamescooke committed Nov 1, 2018
2 parents 5383bda + 5d0de7c commit a50ae97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python
matrix:
include:
- python: 3.5
env: TOXENV=py35-install,py35-test,py35-lint
env: TOXENV=py35-install,py35-test,py35-lint,py35-doc
- python: 3.6
env: TOXENV=py36-install,py36-test,py36-lint
install: pip install tox
Expand Down
16 changes: 9 additions & 7 deletions tox.ini
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

0 comments on commit a50ae97

Please sign in to comment.