Publish alsa-sys too

This commit is contained in:
Pierre Krieger 2015-02-13 14:27:45 +01:00
parent b2a02bdd44
commit b89dc08a2b
1 changed files with 18 additions and 10 deletions

View File

@ -8,13 +8,21 @@ env:
install: install:
- sudo apt-get install libasound2-dev - sudo apt-get install libasound2-dev
after_success: | after_success:
- |
[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] && [ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc && cargo doc &&
cargo login ${CRATESIO_TOKEN} &&
echo '<meta http-equiv=refresh content=0;url=cpal/index.html>' > target/doc/index.html && echo '<meta http-equiv=refresh content=0;url=cpal/index.html>' > target/doc/index.html &&
sudo pip install ghp-import && sudo pip install ghp-import &&
ghp-import -n target/doc && ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages && git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
- cargo login ${CRATESIO_TOKEN}
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo publish cargo publish
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cd alsa-sys && cargo publish && cd ..