Skip to content

Commit f03734a

Browse files
committed
Get travis to upload documentation to gh-pages branch
1 parent 0578c85 commit f03734a

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

.travis.yml

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,38 @@
11
language: rust
22

33
rust:
4-
- stable
5-
- beta
6-
- nightly
4+
- stable
5+
- beta
6+
- nightly
7+
78
matrix:
8-
allow_failures:
9-
- rust: nightly
9+
allow_failures:
10+
- rust: nightly
1011

1112
script:
12-
- cargo build --verbose
13-
- cargo build --features iron-handlers --verbose
13+
- cargo build --verbose
14+
- cargo build --features iron-handlers --verbose
15+
- cargo test --verbose --features iron-handlers
16+
17+
after_success: |
18+
set -e
19+
[ $TRAVIS_BRANCH = master ]
20+
[ $TRAVIS_PULL_REQUEST = false ]
21+
22+
cargo doc --features iron-handlers
23+
24+
mkdir -p ~/.ssh
25+
openssl aes-256-cbc -K $encrypted_7258158212d8_key -iv $encrypted_7258158212d8_iv -in _build/travis-juniper.enc -out ~/.ssh/id_rsa -d
26+
chmod 600 ~/.ssh/id_rsa
27+
28+
git clone --branch gh-pages [email protected]:mhallin/juniper deploy_docs
29+
cd deploy_docs
30+
31+
git config user.name 'Juniper Documentation Builder'
32+
git config user.email '[email protected]'
1433
15-
- cargo test --verbose --features iron-handlers
34+
rm -rf *
35+
mv ../target/doc/* .
36+
git add -A *
37+
git commit -qm 'Update documentation for Juniper'
38+
git push -q origin gh-pages

_build/travis-juniper.enc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
�L��At����ۇu��}k�b����i��xN��J�b'OŒ�6����s��`(�vZe�a���`�P݂W[D�W4����e�������9��4���gF���a�P���5��/8FQܪ"B� ~�Br����8@)��0�ye�Ć����� �C�����F�"m�����w��?�IN�T�(t�lߕS�%K_3�2�^�^kMLMTJ�ս�Z7c��z�&q�sd�H��^���

0 commit comments

Comments
 (0)