chore(docs): publish docs per version

This commit is contained in:
Sean McArthur
2016-03-14 09:54:50 -07:00
parent 146df53caf
commit 905e0d2ff4
5 changed files with 37 additions and 5 deletions

View File

@@ -36,14 +36,10 @@ after_success: |
tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp && cd ../.. &&
ls target/debug &&
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-* &&
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = stable ] &&
cargo doc --no-deps &&
echo '<meta http-equiv=refresh content=0;url=hyper/index.html>' > target/doc/index.html &&
pip install --user ghp-import &&
/home/travis/.local/bin/ghp-import -n target/doc &&
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
./.travis/docs.sh
env:
global: