Fix documentation script
This commit is contained in:
parent
4f6d17c2ff
commit
d9d8a8184e
1 changed files with 17 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue