juniper/.travis.yml

42 lines
1 KiB
YAML
Raw Normal View History

2016-09-11 11:41:29 -05:00
language: rust
rust:
- stable
- beta
- nightly
2016-09-11 11:41:29 -05:00
matrix:
allow_failures:
- rust: nightly
2016-09-11 11:41:29 -05:00
script:
- cargo build --verbose
- cargo build --features iron-handlers --verbose
- cargo test --verbose --features iron-handlers
after_success: |
2016-09-11 13:44:47 -05:00
if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_RUST_VERSION" = stable ]; then
set -e
2016-09-11 13:44:47 -05:00
cargo doc --features iron-handlers
2016-09-11 13:44:47 -05:00
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
2016-09-11 13:44:47 -05:00
git clone --branch gh-pages git@github.com:mhallin/juniper deploy_docs
cd deploy_docs
2016-09-11 13:44:47 -05:00
git config user.name 'Juniper Documentation Builder'
git config user.email 'nobody@example.com'
2016-09-11 11:41:29 -05:00
2016-09-11 13:44:47 -05:00
rm -rf *
mv ../target/doc/* .
2016-09-11 13:44:47 -05:00
echo '<meta http-equiv="refresh" content="0; url=juniper/index.html">' > index.html
2016-09-11 13:44:47 -05:00
git add -A *
git commit -qm 'Update documentation for Juniper'
git push -q origin gh-pages
fi