docs(guide): build and test markdown files in doc directory

This commit is contained in:
Sean McArthur
2016-07-14 19:25:49 -07:00
parent 220d09fc3a
commit 29b65f6bdd
3 changed files with 41 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ script:
- ./.travis/readme.py
- cargo build --verbose $FEATURES
- cargo test --verbose $FEATURES
- 'if [ $TRAVIS_RUST_VERSION = nightly ]; then cargo bench --no-run; fi'
- 'for f in ./doc/**/*.md; do rustdoc --test $f; done'
addons:
apt:
@@ -40,7 +40,6 @@ after_success: |
./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" ]; } &&
cargo doc --no-deps &&
./.travis/docs.sh &&
echo "\nDocs published.\n"