Skip to content

Commit

Permalink
add travis to try build and spell check (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Apr 24, 2018
1 parent 77bf499 commit 82f4138
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: python
python: "3.5"
dist: trusty
sudo: true
before_install:
- sudo apt update && sudo apt install -y enchant
install:
- pip install -U setuptools
- pip install -U pyenchant sphinx-rtd-theme sphinxcontrib-spelling
script:
- make spelling
# show list of misspelled words
- cat "_build/spelling/output.txt"
- make html
# fail the build in case of any misspelled words
- if [[ -s "_build/spelling/output.txt" ]]; then false; fi
notifications:
email: false
3 changes: 3 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
try:
import sphinxcontrib.spelling # noqa: F401
extensions.append('sphinxcontrib.spelling')

from sphinxcontrib.spelling.filters import ContractionFilter
spelling_filters = [ContractionFilter]
except ImportError:
pass

Expand Down

0 comments on commit 82f4138

Please sign in to comment.