Skip to content

Commit 7963bed

Browse files
authored
Backport recent .travis.yml changes (#309)
Backported changes from master: * b52260d * 984eef7 * 5325197 * 91b0e7d (cherry picked from commit 05e1a32)
1 parent 6b585fd commit 7963bed

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.travis.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ group: beta
66
# To cache doc-building dependencies.
77
cache: pip
88

9+
branches:
10+
only:
11+
- master
12+
- /^\d\.\d$/
13+
914
os:
1015
- linux
1116
# macOS builds are disabled as the machines are under-provisioned on Travis,
@@ -20,6 +25,7 @@ env:
2025
- TESTING=cpython
2126

2227
matrix:
28+
fast_finish: true
2329
allow_failures:
2430
- env:
2531
- TESTING=coverage
@@ -30,17 +36,10 @@ matrix:
3036
env:
3137
- TESTING=docs
3238
before_script:
33-
- |
34-
if git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '^Doc/'
35-
then
36-
echo "Docs weren't updated, stopping build process."
37-
exit
38-
fi
39-
cd Doc
40-
make venv PYTHON=python3
39+
- cd Doc
40+
- make venv
4141
script:
42-
- make html SPHINXBUILD="./venv/bin/python3 -m sphinx" SPHINXOPTS="-q"
43-
- make check
42+
- make check suspicious html PYTHON="./venv/bin/python" SPHINXBUILD="./venv/bin/python -m sphinx" SPHINXOPTS="-q"
4443
- os: linux
4544
language: c
4645
compiler: clang

0 commit comments

Comments
 (0)