diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-01-08 11:25:45 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-01-08 13:11:04 +0100 |
commit | 8d4bb2a88beb49c2d4833159b989cc4aaee913db (patch) | |
tree | c65706db0a09848c245b70f6185b115be3bc253c /.travis.yml | |
parent | 3ea972118458d54cea5326b3187916b45f05b629 (diff) |
travis: Only build changes if there are changes outside of ./doc
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 487b4a19..dfc4690f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,14 @@ before_script: script: - | - travis-cargo build && - travis-cargo test && - travis-cargo bench && - travis-cargo --only stable doc + if [[ "doc" == $(git diff --name-only $TRAVIS_BRANCH..$TRAVIS_COMMIT | cut -d "/" -f 1 | uniq) ]]; then + echo "There are only changes in the ./doc directory... not doing anything" + else + travis-cargo build && + travis-cargo test && + travis-cargo bench && + travis-cargo --only stable doc + fi addons: apt: |