Skip to content

Commit 25407b2

Browse files
berkerpeksagmethane
authored andcommitted
cherry-pick 157c0b8
1 parent bfeb853 commit 25407b2

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.travis.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,17 @@ matrix:
2727
env:
2828
- TESTING=docs
2929
before_script:
30-
- cd Doc
30+
- |
31+
if git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '^Doc/'
32+
then
33+
echo "Docs weren't updated, stopping build process."
34+
exit
35+
fi
36+
cd Doc
3137
- pip install -U Sphinx
3238
script:
3339
- make html SPHINXOPTS="-q"
40+
- python tools/rstlint.py -i tools -i venv
3441
- os: linux
3542
language: cpp
3643
compiler: clang
@@ -43,8 +50,14 @@ matrix:
4350

4451
# Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
4552
before_script:
46-
- ./configure --with-pydebug
47-
- make -j4
53+
- |
54+
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)/'
55+
then
56+
echo "Only docs were updated, stopping build process."
57+
exit
58+
fi
59+
./configure --with-pydebug
60+
make -j4
4861
4962
script:
5063
# `-r -w` implicitly provided through `make buildbottest`.

0 commit comments

Comments
 (0)