rodio/.travis.yml
2015-09-23 10:39:18 +02:00

31 lines
704 B
YAML

sudo: false
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: stable
- rust: nightly
addons:
apt:
packages:
- libasound2-dev
after_success:
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] &&
cargo doc &&
git clone https://github.com/davisp/ghp-import &&
./ghp-import/ghp-import target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo publish --no-verify --token ${CRATESIO_TOKEN}