Get travis to upload documentation to gh-pages branch
This commit is contained in:
parent
0578c85ac8
commit
f03734a588
2 changed files with 32 additions and 8 deletions
25
.travis.yml
25
.travis.yml
|
@ -4,6 +4,7 @@ rust:
|
|||
- stable
|
||||
- beta
|
||||
- nightly
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- rust: nightly
|
||||
|
@ -11,5 +12,27 @@ matrix:
|
|||
script:
|
||||
- cargo build --verbose
|
||||
- cargo build --features iron-handlers --verbose
|
||||
|
||||
- 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
|
||||
|
|
1
_build/travis-juniper.enc
Normal file
1
_build/travis-juniper.enc
Normal 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‚¢^¨•‡
|
Loading…
Reference in a new issue