Get travis to upload documentation to gh-pages branch

This commit is contained in:
Magnus Hallin 2016-09-11 20:31:16 +02:00
parent 0578c85ac8
commit f03734a588
2 changed files with 32 additions and 8 deletions

View file

@ -4,6 +4,7 @@ rust:
- stable - stable
- beta - beta
- nightly - nightly
matrix: matrix:
allow_failures: allow_failures:
- rust: nightly - rust: nightly
@ -11,5 +12,27 @@ matrix:
script: script:
- cargo build --verbose - cargo build --verbose
- cargo build --features iron-handlers --verbose - cargo build --features iron-handlers --verbose
- cargo test --verbose --features iron-handlers - cargo test --verbose --features iron-handlers
after_success: |
set -e
[ $TRAVIS_BRANCH = master ]
[ $TRAVIS_PULL_REQUEST = false ]
cargo doc --features iron-handlers
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
chmod 600 ~/.ssh/id_rsa
git clone --branch gh-pages git@github.com:mhallin/juniper deploy_docs
cd deploy_docs
git config user.name 'Juniper Documentation Builder'
git config user.email 'nobody@example.com'
rm -rf *
mv ../target/doc/* .
git add -A *
git commit -qm 'Update documentation for Juniper'
git push -q origin gh-pages

View file

@ -0,0 +1 @@
´LÅØAtÙèù˜Û‡uÙË}k¦b÷Œ«<C592>iíãxN»ÔJÛb'OÅ€6°¤ê·ÄsÞ`(¯vZeòaˆ°Î`ëPÝW[DæW4¾®€Ïe¡·» <C2BB>«ï9¥¿4 ÀÖžgF÷ûa¸PýŒ5ò õ/8FQܪ"Bß ~þBrº¢Ž8@)†Ê0 yeÍĆ»·²Š àCù·»º´F¹"m§±òö¡wûÑ?<3F>INŽTŠ(tõlß•SÀ%K_3ð¾2ò§^Š^kMLMTJÛÕ½¾Z7cÁüzÖ&qÆsd²H¢^¨•‡