Skip to content

Commit a8f2e76

Browse files
authored
Merge pull request #9 from click-contrib/ci-build-docs
CI build docs
2 parents 4ad1cee + 2ce4f9c commit a8f2e76

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ matrix:
1111
env: TOXENV=py38-pytest
1212
- python: "3.7"
1313
env: TOXENV=flake8
14+
- python: "3.7"
15+
env: TOXENV=docs
1416

1517
install:
1618
pip install tox

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_long_description():
3434
],
3535
extras_require={
3636
'docs': ['sphinx>=2.3, <3', 'Pallets-Sphinx-Themes', 'm2r'],
37-
'tests': ['pytest'],
37+
'tests': ['coverage <6', 'pytest', 'pytest-cov', 'coveralls'],
3838
},
3939
url='https://github.com/click-contrib/click-option-group',
4040
project_urls={

tox.ini

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
[tox]
22
envlist = py{36,37,38}-pytest-coverage, flake8
3+
skipsdist = True
34

45
[testenv]
5-
deps = pytest
6-
commands = pytest --color=yes -v {posargs}
6+
commands =
7+
pip install -e .[tests]
8+
pytest --color=yes -v {posargs}
79

810
[testenv:py37-pytest-coverage]
9-
usedevelop = true
1011
passenv = TRAVIS TRAVIS_*
11-
deps =
12-
pytest
13-
coverage <6
14-
pytest-cov
15-
coveralls
1612
commands =
13+
pip install -e .[tests]
1714
pytest --cov=click_option_group --color=yes -v {posargs}
1815
coveralls
1916

17+
[testenv:docs]
18+
whitelist_externals = make
19+
commands =
20+
pip install -e .[docs]
21+
make -C docs/ html
22+
2023
[testenv:flake8]
2124
deps =
2225
flake8

0 commit comments

Comments
 (0)