8000 [backport to 3.6] bpo-29529: Add .travis.yml to 3.6 branch by methane · Pull Request #25 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

[backport to 3.6] bpo-29529: Add .travis.yml to 3.6 branch #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 19, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only run CI checks when appropriate files have changed (#74)
  • Loading branch information
berkerpeksag authored and methane committed Feb 14, 2017
commit 6475d73b5aa123163fc42bdd15bfc075ac441d92
36 changes: 27 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ matrix:
env:
- TESTING=docs
before_script:
- cd Doc
- make venv PYTHON=python3
- |
if git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '^Doc/'
then
echo "Docs weren't updated, stopping build process."
exit
fi
cd Doc
make venv PYTHON=python3
script:
- make html SPHINXBUILD="./venv/bin/python3 -m sphinx" SPHINXOPTS="-q"
- python3 tools/rstlint.py -i tools -i venv
Expand All @@ -41,11 +47,17 @@ matrix:
env:
- TESTING=coverage
before_script:
- ./configure
- make -s -j4
# Need a venv that can parse covered code.
- ./python -m venv venv
- ./venv/bin/python -m pip install -U coverage
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)/'
then
echo "Only docs were updated, stopping build process."
exit
fi
./configure
make -s -j4
# Need a venv that can parse covered code.
./python -m venv venv
./venv/bin/python -m pip install -U coverage
script:
# Skip tests that re-run the entire test suite.
- ./venv/bin/python -m coverage run --pylib -m test -uall -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
Expand All @@ -65,8 +77,14 @@ matrix:

# Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
before_script:
- ./configure --with-pydebug
- make -j4
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)/'
then
echo "Only docs were updated, stopping build process."
exit
fi
./configure --with-pydebug
make -j4

script:
# `-r -w` implicitly provided through `make buildbottest`.
Expand Down
0