File tree 1 file changed +16
-3
lines changed 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,17 @@ matrix:
27
27
env :
28
28
- TESTING=docs
29
29
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
31
37
- pip install -U Sphinx
32
38
script :
33
39
- make html SPHINXOPTS="-q"
40
+ - python tools/rstlint.py -i tools -i venv
34
41
- os : linux
35
42
language : cpp
36
43
compiler : clang
@@ -43,8 +50,14 @@ matrix:
43
50
44
51
# Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
45
52
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
48
61
49
62
script :
50
63
# `-r -w` implicitly provided through `make buildbottest`.
You can’t perform that action at this time.
0 commit comments