Add index.html to documentation, only build on stable

This commit is contained in:
Magnus Hallin 2016-09-11 20:37:23 +02:00
parent f03734a588
commit 4f6d17c2ff

View file

@ -18,6 +18,7 @@ after_success: |
set -e
[ $TRAVIS_BRANCH = master ]
[ $TRAVIS_PULL_REQUEST = false ]
[ $TRAVIS_RUST_VERSION = stable ]
cargo doc --features iron-handlers
@ -33,6 +34,9 @@ after_success: |
rm -rf *
mv ../target/doc/* .
echo '<meta http-equiv="refresh" content="0; url=graphql/index.html">' > index.html
git add -A *
git commit -qm 'Update documentation for Juniper'
git push -q origin gh-pages