File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff 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.
4552before_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
4962script :
5063 # `-r -w` implicitly provided through `make buildbottest`.
You can’t perform that action at this time.
0 commit comments