Fix documentation script
This commit is contained in:
parent
4f6d17c2ff
commit
d9d8a8184e
1 changed files with 17 additions and 18 deletions
35
.travis.yml
35
.travis.yml
|
@ -15,28 +15,27 @@ script:
|
||||||
- cargo test --verbose --features iron-handlers
|
- cargo test --verbose --features iron-handlers
|
||||||
|
|
||||||
after_success: |
|
after_success: |
|
||||||
set -e
|
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then
|
||||||
[ $TRAVIS_BRANCH = master ]
|
set -e
|
||||||
[ $TRAVIS_PULL_REQUEST = false ]
|
|
||||||
[ $TRAVIS_RUST_VERSION = stable ]
|
|
||||||
|
|
||||||
cargo doc --features iron-handlers
|
cargo doc --features iron-handlers
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
openssl aes-256-cbc -K $encrypted_7258158212d8_key -iv $encrypted_7258158212d8_iv -in _build/travis-juniper.enc -out ~/.ssh/id_rsa -d
|
openssl aes-256-cbc -K $encrypted_7258158212d8_key -iv $encrypted_7258158212d8_iv -in _build/travis-juniper.enc -out ~/.ssh/id_rsa -d
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
|
||||||
git clone --branch gh-pages git@github.com:mhallin/juniper deploy_docs
|
git clone --branch gh-pages git@github.com:mhallin/juniper deploy_docs
|
||||||
cd deploy_docs
|
cd deploy_docs
|
||||||
|
|
||||||
git config user.name 'Juniper Documentation Builder'
|
git config user.name 'Juniper Documentation Builder'
|
||||||
git config user.email 'nobody@example.com'
|
git config user.email 'nobody@example.com'
|
||||||
|
|
||||||
rm -rf *
|
rm -rf *
|
||||||
mv ../target/doc/* .
|
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 add -A *
|
||||||
git commit -qm 'Update documentation for Juniper'
|
git commit -qm 'Update documentation for Juniper'
|
||||||
git push -q origin gh-pages
|
git push -q origin gh-pages
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue