Merge pull request #840 from hyperium/docs-generation-fix

docs(lib): only generate docs if on master branch or a tag commit
This commit is contained in:
Sean McArthur
2016-06-20 22:38:16 +01:00
committed by GitHub

View File

@@ -39,6 +39,7 @@ after_success: |
ls target/debug &&
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-* &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ "$TRAVIS_TAG" != "" || $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_RUST_VERSION = stable ] &&
cargo doc --no-deps &&
./.travis/docs.sh