@@ -15,28 +15,27 @@ script:
15
15
- cargo test --verbose --features iron-handlers
16
16
17
17
after_success : |
18
- set -e
19
- [ $TRAVIS_BRANCH = master ]
20
- [ $TRAVIS_PULL_REQUEST = false ]
21
- [ $TRAVIS_RUST_VERSION = stable ]
18
+ if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then
19
+ set -e
22
20
23
- cargo doc --features iron-handlers
21
+ cargo doc --features iron-handlers
24
22
25
- mkdir -p ~/.ssh
26
- openssl aes-256-cbc -K $encrypted_7258158212d8_key -iv $encrypted_7258158212d8_iv -in _build/travis-juniper.enc -out ~/.ssh/id_rsa -d
27
- chmod 600 ~/.ssh/id_rsa
23
+ mkdir -p ~/.ssh
24
+ openssl aes-256-cbc -K $encrypted_7258158212d8_key -iv $encrypted_7258158212d8_iv -in _build/travis-juniper.enc -out ~/.ssh/id_rsa -d
25
+ chmod 600 ~/.ssh/id_rsa
28
26
29
- git clone --branch gh-pages [email protected] :mhallin/juniper deploy_docs
30
- cd deploy_docs
27
+ git clone --branch gh-pages [email protected] :mhallin/juniper deploy_docs
28
+ cd deploy_docs
31
29
32
- git config user.name 'Juniper Documentation Builder'
33
- git config user.email '[email protected] '
30
+ git config user.name 'Juniper Documentation Builder'
31
+ git config user.email '[email protected] '
34
32
35
- rm -rf *
36
- mv ../target/doc/* .
33
+ rm -rf *
34
+ mv ../target/doc/* .
37
35
38
- echo '<meta http-equiv="refresh" content="0; url=graphql /index.html">' > index.html
36
+ echo '<meta http-equiv="refresh" content="0; url=juniper /index.html">' > index.html
39
37
40
- git add -A *
41
- git commit -qm 'Update documentation for Juniper'
42
- git push -q origin gh-pages
38
+ git add -A *
39
+ git commit -qm 'Update documentation for Juniper'
40
+ git push -q origin gh-pages
41
+ fi
0 commit comments