Skip to content

Commit

Permalink
Merge pull request #4 from Squarespace/zcm/ensure_docs_build
Browse files Browse the repository at this point in the history
Build docs during Travis CI
  • Loading branch information
zcmarine committed Jun 4, 2018
2 parents 7e2fef9 + 8308e2c commit 1f2b660
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
15 changes: 10 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
language: python
python:
- "2.7"
- "3.6"
python: 3.6

install: pip install tox coveralls

env:
- TOX_ENV=py27
- TOX_ENV=py36
- TOX_ENV=docs

script: tox -e $TOX_ENV

install: pip install tox-travis coveralls
script: tox
after_success: coveralls
3 changes: 1 addition & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ pytest-cov>=2.5.1
pytest-mock>=1.9.0
pytest>=3.0.5
PyYAML>=3.12
sphinx>=1.7.4
sphinx_rtd_theme>=0.3.1
tox>=3.0.0
-r requirements-docs.txt
2 changes: 2 additions & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx>=1.7.4
sphinx_rtd_theme>=0.3.1
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
; If these environments do not work then equivalently typing 'python3.6' and 'python3.7'
; into the terminal likely don't work. Set symlinks so those resolve and the interpreters
; should be found by tox
envlist = py27,py36
envlist = py27, py36, docs

[testenv]
deps = -rrequirements-dev.txt
usedevelop=True
deps = -rrequirements-dev.txt
commands = pytest --cov datasheets --cov-report=

[testenv:docs]
; Ensure docs will build
deps = -rrequirements-docs.txt
whitelist_externals = make
commands = make docs

0 comments on commit 1f2b660

Please sign in to comment.