Skip to content

Commit

Permalink
FEAT(TCs): check SITE and fail on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Oct 13, 2019
1 parent 8f3ec3a commit a349c69
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ script:
if [[ "$TRAVIS_PYTHON_VERSION" = '3.7' ]]; then
pytest --cov=graphkit -m 'slow or not slow'
else
pytest --cov=graphkit test/
pytest --cov=graphkit test/
fi
deploy:
Expand Down
10 changes: 9 additions & 1 deletion test/test_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
import sys


proj_path = osp.join(osp.dirname(__file__), "..")


def test_README_as_PyPi_landing_page(monkeypatch):
from docutils import core as dcore

proj_path = osp.join(osp.dirname(__file__), "..")
long_desc = subprocess.check_output(
"python setup.py --long-description".split(), cwd=proj_path
)
Expand All @@ -22,3 +24,9 @@ def test_README_as_PyPi_landing_page(monkeypatch):
"halt_level": 2 # 2=WARN, 1=INFO
},
)


# @pytest.mark.slow
def test_site():
# Fail on warnings, but don't rebuild all files (no `-a`),
subprocess.check_call("python setup.py build_sphinx -W".split(), cwd=proj_path)

0 comments on commit a349c69

Please sign in to comment.