Skip to content

Commit

Permalink
cherry-pick 157c0b8
Browse files Browse the repository at this point in the history
  • Loading branch information
berkerpeksag authored and methane committed Feb 14, 2017
1 parent bfeb853 commit 25407b2
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,17 @@ matrix:
env:
- TESTING=docs
before_script:
- cd Doc
- |
if git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '^Doc/'
then
echo "Docs weren't updated, stopping build process."
exit
fi
cd Doc
- pip install -U Sphinx
script:
- make html SPHINXOPTS="-q"
- python tools/rstlint.py -i tools -i venv
- os: linux
language: cpp
compiler: clang
Expand All @@ -43,8 +50,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 comments on commit 25407b2

Please sign in to comment.