summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-01-08 11:25:45 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-01-08 13:11:04 +0100
commit8d4bb2a88beb49c2d4833159b989cc4aaee913db (patch)
treec65706db0a09848c245b70f6185b115be3bc253c /.travis.yml
parent3ea972118458d54cea5326b3187916b45f05b629 (diff)
travis: Only build changes if there are changes outside of ./doc
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml12
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: