diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-01-14 12:03:25 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-01-14 12:07:03 +0100 |
commit | 656f7accbf3c41a8d41c5b01d2c1b108bf5d1ba4 (patch) | |
tree | ed7478a685089c8e8d29af532953a577a0fa0f33 /.travis.yml | |
parent | ec6ac7794fd5a9399890dc6062bb358507bba527 (diff) |
travis: exit(0) if there are only changes in ./doc
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 54878194..d88894af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,17 @@ matrix: allow_failures: - rust: nightly +before_install: + - | + c=$(git diff $TRAVIS_BRANCH..$TRAVIS_COMMIT --name-only | cut -d "/" -f 1 | uniq) + if [[ "$c" == "doc" ]]; then + echo "Only changes in DOC, exiting 0" + exit 0 + else + echo "Changes in other directories than ./doc" + echo "continue build..." + fi + before_script: - | pip install 'travis-cargo<0.2' --user && |