Skip to content

Commit f17bbbd

Browse files
committed
Show errors and warnings as well as deprecation warnings in doc CI after build.
1 parent 2171d95 commit f17bbbd

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.circleci/config.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,25 @@ commands:
141141
[ "$CIRCLE_PR_NUMBER" = "" ]; then
142142
export RELEASE_TAG='-t release'
143143
fi
144-
make html O="-T $RELEASE_TAG -j4"
144+
make html O="-T $RELEASE_TAG -j4 -w /tmp/sphinxerrorswarnings.log"
145145
rm -r build/html/_sources
146146
working_directory: doc
147147
- save_cache:
148148
key: sphinx-env-v1-{{ .BuildNum }}-{{ .Environment.CIRCLE_JOB }}
149149
paths:
150150
- doc/build/doctrees
151151

152+
doc-show-errors-warnings:
153+
steps:
154+
- run:
155+
(grep "WARNING\|ERROR" /tmp/sphinxerrorswarnings.log || true)
156+
157+
doc-show-deprecations:
158+
steps:
159+
- run:
160+
(grep DeprecationWarning -r -l doc/build/html/gallery || true)
161+
(grep DeprecationWarning -r -l doc/build/html/tutorials || true)
162+
152163
doc-bundle:
153164
steps:
154165
- run:
@@ -186,6 +197,8 @@ jobs:
186197
- doc-deps-install
187198

188199
- doc-build
200+
- doc-show-errors-warnings
201+
- doc-show-deprecations
189202

190203
- doc-bundle
191204

0 commit comments

Comments
 (0)