2014-12-11 13:22:55 +00:00
|
|
|
language: rust
|
2014-12-17 06:07:32 +00:00
|
|
|
|
2014-12-17 06:45:25 +00:00
|
|
|
env:
|
|
|
|
global:
|
2015-02-13 13:23:12 +00:00
|
|
|
- secure: "ZGNi7bKoxNIziWzdNP1QbH6ZbeWDInq42yq1rzWY71I/pi8yA4zjVAYdgXKElc0saB0d2TxJCwpeGVyXwuXXeNoud8HWsqQxhNVMM8K27a2jeezza8UCCJ7kAS6E/+gQj7w+HFtgWiUHZ0KEjGONqXJM+cWqH5oprTEuNBOPqDA="
|
2014-12-17 08:59:24 +00:00
|
|
|
- secure: "H7JRHaCkm6NvmMU76pNUyK5fj8d0kEb1snGCTcC4ZdW98P5qSEDbMBOKZgSW0DNhKmzYS1qHHAXlmm9c9JCVYfeErL9JeTrRk4DvIO8sH3ImhHIB/q4U+h+hxZ6W+dGpTi0kjQ5ZS3z+Mlr/9CB4UT83HmF78Zfyf6KA15esUIQ="
|
2014-12-17 06:45:25 +00:00
|
|
|
|
2014-12-17 06:07:32 +00:00
|
|
|
install:
|
2014-12-17 06:45:25 +00:00
|
|
|
- sudo apt-get install libasound2-dev
|
|
|
|
|
2015-02-13 13:27:45 +00:00
|
|
|
after_success:
|
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
cargo doc &&
|
|
|
|
echo '<meta http-equiv=refresh content=0;url=cpal/index.html>' > target/doc/index.html &&
|
|
|
|
sudo pip install ghp-import &&
|
|
|
|
ghp-import -n target/doc &&
|
|
|
|
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2015-02-28 19:13:33 +00:00
|
|
|
cargo publish --token ${CRATESIO_TOKEN}
|
2015-02-13 13:27:45 +00:00
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2015-02-28 19:13:33 +00:00
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path alsa-sys/Cargo.toml
|