mirror of
https://github.com/python/cpython.git
synced 2025-09-29 19:56:59 +00:00
Backport recent .travis.yml changes (#308)
Backported changes from master: *b52260d8bf
*984eef7d6d
*532519770d
*91b0e7d0ca
This commit is contained in:
parent
fae59e1aa8
commit
5c7b8f423a
1 changed files with 9 additions and 10 deletions
19
.travis.yml
19
.travis.yml
|
@ -6,6 +6,11 @@ group: beta
|
||||||
# To cache doc-building dependencies.
|
# To cache doc-building dependencies.
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- /^\d\.\d$/
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
# macOS builds are disabled as the machines are under-provisioned on Travis,
|
# macOS builds are disabled as the machines are under-provisioned on Travis,
|
||||||
|
@ -20,6 +25,7 @@ env:
|
||||||
- TESTING=cpython
|
- TESTING=cpython
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env:
|
- env:
|
||||||
- TESTING=coverage
|
- TESTING=coverage
|
||||||
|
@ -30,17 +36,10 @@ matrix:
|
||||||
env:
|
env:
|
||||||
- TESTING=docs
|
- TESTING=docs
|
||||||
before_script:
|
before_script:
|
||||||
- |
|
- cd Doc
|
||||||
if git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '^Doc/'
|
- make venv
|
||||||
then
|
|
||||||
echo "Docs weren't updated, stopping build process."
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
cd Doc
|
|
||||||
make venv PYTHON=python3
|
|
||||||
script:
|
script:
|
||||||
- make html SPHINXBUILD="./venv/bin/python3 -m sphinx" SPHINXOPTS="-q"
|
- make check suspicious html PYTHON="./venv/bin/python" SPHINXBUILD="./venv/bin/python -m sphinx" SPHINXOPTS="-q"
|
||||||
- make check
|
|
||||||
- os: linux
|
- os: linux
|
||||||
language: c
|
language: c
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue