Fix documentation script

This commit is contained in:
Magnus Hallin 2016-09-11 20:44:47 +02:00
parent 4f6d17c2ff
commit d9d8a8184e

View file

@ -15,10 +15,8 @@ script:
- cargo test --verbose --features iron-handlers
after_success: |
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then
set -e
[ $TRAVIS_BRANCH = master ]
[ $TRAVIS_PULL_REQUEST = false ]
[ $TRAVIS_RUST_VERSION = stable ]
cargo doc --features iron-handlers
@ -35,8 +33,9 @@ after_success: |
rm -rf *
mv ../target/doc/* .
echo '<meta http-equiv="refresh" content="0; url=graphql/index.html">' > index.html
echo '<meta http-equiv="refresh" content="0; url=juniper/index.html">' > index.html
git add -A *
git commit -qm 'Update documentation for Juniper'
git push -q origin gh-pages
fi