8000 Add docs testenv to tox.ini · pythonthings/github3.py@3d800f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d800f9

Browse files
committed
Add docs testenv to tox.ini
Update Makefile to use tox
1 parent 61c184b commit 3d800f9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Makefile for github3.py
22
#
3-
# Copyright 2012, Ian Cordasco
3+
# Copyright 2015, Ian Cordasco
44

55
COVERAGE_INCLUDE := github3/*.py
6-
TEST_RUNNER := python setup.py test
6+
TEST_RUNNER := tox
77

88
.DEFAULT_GOAL := tests
99

@@ -23,4 +23,4 @@ htmlcov: .coverage
2323
coverage html --omit=github3/packages/*
2424

2525
docs: docs/*.rst
26-
make -C docs/ html
26+
tox -e docs

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ commands =
4444
python setup.py sdist bdist_wheel
4545
twine upload {posargs} dist/*
4646

47+
[testenv:docs]
48+
deps =
49+
sphinx>=1.3.0
50+
.
51+
commands =
52+
sphinx-build -E -W -c docs -b html docs/ docs/_build/html
53+
4754
[pytest]
4855
addopts = -q
4956
norecursedirs = *.egg .git .* _*

0 commit comments

Comments
 (0)
0