Skip to content

Commit b89fcc5

Browse files
DOC: Removing spellcheck, failing doc script if sphinx fail, and moving the doc job out of allowed failure jobs
1 parent 7b0fa8e commit b89fcc5

File tree

5 files changed

+7
-2591
lines changed

5 files changed

+7
-2591
lines changed

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,19 @@ matrix:
6060
apt:
6161
packages:
6262
- xsel
63-
64-
# In allow_failures
6563
- dist: trusty
6664
env:
67-
- JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" PATTERN="slow"
65+
- JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-doc.yaml" DOC=true
6866

6967
# In allow_failures
7068
- dist: trusty
7169
env:
72-
- JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-doc.yaml" DOC=true
70+
- JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" PATTERN="slow"
71+
7372
allow_failures:
7473
- dist: trusty
7574
env:
7675
- JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" PATTERN="slow"
77-
- dist: trusty
78-
env:
79-
- JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-doc.yaml" DOC=true
8076

8177
before_install:
8278
- echo "before_install"

doc/make.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@ def _run_os(*args):
214214
# TODO check_call should be more safe, but it fails with
215215
# exclude patterns, needs investigation
216216
# subprocess.check_call(args, stderr=subprocess.STDOUT)
217-
os.system(' '.join(args))
217+
exit_status = os.system(' '.join(args))
218+
if exit_status:
219+
msg = 'Command "{}" finished with exit code {}'
220+
raise RuntimeError(msg.format(' '.join(args), exit_status))
218221

219222
def _sphinx_build(self, kind):
220223
"""Call sphinx to build documentation.

doc/source/conf.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,8 @@
7777
'contributors', # custom pandas extension
7878
]
7979

80-
try:
81-
import sphinxcontrib.spelling # noqa
82-
except ImportError as err:
83-
logger.warn(('sphinxcontrib.spelling failed to import with error "{}". '
84-
'`spellcheck` command is not available.'.format(err)))
85-
else:
86-
extensions.append('sphinxcontrib.spelling')
87-
8880
exclude_patterns = ['**.ipynb_checkpoints']
8981

90-
spelling_word_list_filename = ['spelling_wordlist.txt', 'names_wordlist.txt']
91-
spelling_ignore_pypi_package_names = True
92-
9382
with open("index.rst") as f:
9483
index_rst_lines = f.readlines()
9584

0 commit comments

Comments
 (0)