Skip to content

Commit a22df48

Browse files
authored
bpo-35240: Add "doctest" job to Travis CI (GH-10753)
Create a new "doctest" job in Travis CI to run "make doctest".
1 parent b727873 commit a22df48

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.travis.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ matrix:
5757
- python -m pip install sphinx==1.8.2 blurb python-docs-theme
5858
script:
5959
- make check suspicious html SPHINXOPTS="-q -W -j4"
60+
- os: linux
61+
language: c
62+
compiler: clang
63+
env: TESTING=doctest
64+
addons:
65+
apt:
66+
packages:
67+
- xvfb
68+
before_script:
69+
- ./configure
70+
- make -j4
71+
- make -C Doc/ PYTHON=../python venv
72+
script:
73+
xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest
6074
- os: osx
6175
language: c
6276
compiler: clang
@@ -96,7 +110,7 @@ before_install:
96110
- set -e
97111
- |
98112
# Check short-circuit conditions
99-
if [[ "${TESTING}" != "docs" ]]
113+
if [[ "${TESTING}" != "docs" && "${TESTING}" != "doctest" ]]
100114
then
101115
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]
102116
then
@@ -121,6 +135,7 @@ before_install:
121135
install:
122136
- |
123137
# Install OpenSSL as necessary
138+
# Note: doctest needs OpenSSL
124139
if [[ "${TESTING}" != "docs" ]]
125140
then
126141
# clang complains about unused-parameter a lot, redirect stderr
@@ -160,9 +175,6 @@ script:
160175
XVFB_RUN=xvfb-run;
161176
fi
162177
$XVFB_RUN make buildbottest TESTOPTS="-j4 -uall,-cpu"
163-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
164-
$XVFB_RUN make PYTHON=../python SPHINXOPTS="-q -W -j4" -C Doc/ venv doctest
165-
fi
166178
notifications:
167179
email: false
168180
irc:

0 commit comments

Comments
 (0)