Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit aa3cc27

Browse files
committed
Merge pull request #148 from Nurdok/tox-docs
Build Sphinx docs in tox / Travis
2 parents 2674e27 + c1933b3 commit aa3cc27

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ matrix:
2525
env: TOXENV=pypy
2626
- python: pypy3
2727
env: TOXENV=pypy3
28+
- python: 2.7
29+
env: TOXENV=docs

tox.ini

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,26 @@
44
# install tox" and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py26, py27, py32, py33, py34, py35, pypy, pypy3
7+
envlist = py26, py27, py32, py33, py34, py35, pypy, pypy3, docs
88

99
[testenv]
1010
# Make sure reading the UTF-8 from test.py works regardless of the locale used.
11-
setenv = LANG=C LC_ALL=C
11+
setenv =
12+
LANG=C
13+
LC_ALL=C
1214
commands = py.test --pep8 --clearcache
1315
deps = -rrequirements/tests.txt
1416

17+
[testenv:docs]
18+
changedir=docs
19+
deps = -rrequirements/docs.txt
20+
commands=sphinx-build -b html . _build
21+
1522
[pytest]
1623
pep8ignore =
1724
test.py E701 E704
1825
norecursedirs = docs .tox
1926

2027
[pep257]
2128
inherit = false
29+
convention = pep257

0 commit comments

Comments
 (0)