Skip to content

Commit

Permalink
only run coveralls once on travis (#24)
Browse files Browse the repository at this point in the history
* only run coveralls once on travis
* add doc tox env target
* run doc tox env on travis
* install graphviz on travis
* disable unused sphinx option
* reference py3 stdlib
  • Loading branch information
thijstriemstra authored and rm-hull committed Oct 27, 2017
1 parent 5195436 commit 8f33f81
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Expand Up @@ -12,10 +12,14 @@ matrix:
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: 2.7
env: TOXENV=qa
- python: 3.5
env: TOXENV=qa,doc

addons:
apt:
packages:
- graphviz

install: pip install -U pip tox setuptools coveralls
install: pip install --upgrade pip tox setuptools coveralls
script: tox -vv
after_success:
- coveralls
after_success: if [ "$TOXENV" == "py36" ]; then coveralls; fi
4 changes: 2 additions & 2 deletions doc/conf.py
Expand Up @@ -167,7 +167,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# html_static_path = ['_static']

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down Expand Up @@ -354,7 +354,7 @@

# Configuration for intersphinx.
intersphinx_mapping = {
'python': ('https://docs.python.org/2', None),
'python': ('https://docs.python.org/3', None),
'pillow': ('https://pillow.readthedocs.io/en/latest', None),
'luma.core': ('https://luma-core.readthedocs.io/en/latest', None)
}
14 changes: 9 additions & 5 deletions tox.ini
Expand Up @@ -2,20 +2,24 @@
# See LICENSE.rst for details.

[tox]
envlist = py{27,34,35,36,37},qa
envlist = py{27,34,35,36,37},qa,doc
skip_missing_interpreters = True

[testenv]
commands =
python setup.py install
coverage run -m py.test -v -r w -s
coverage report
deps =
.[test]
deps = .[test]

[testenv:qa]
commands =
flake8
rstcheck README.rst
deps =
.[qa]
deps = .[qa]

[testenv:doc]
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
changedir = doc
deps = .[docs]

0 comments on commit 8f33f81

Please sign in to comment.