Try travis-cargo

This commit is contained in:
Alexis Mousset
2015-05-06 15:48:15 +02:00
parent 30583ef1a6
commit 6ea49d770c

View File

@@ -1,16 +1,18 @@
language: rust language: rust
sudo: required
rust: rust:
- 1.0.0-beta.4 - 1.0.0-beta.4
before_script:
after_success: | - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
[ $TRAVIS_BRANCH = master ] && script:
[ $TRAVIS_PULL_REQUEST = false ] && - |
cargo doc && travis-cargo build &&
echo '<meta http-equiv=refresh content=0;url=smtp/index.html>' > target/doc/index.html && travis-cargo test &&
sudo pip install ghp-import && travis-cargo doc
ghp-import -n target/doc && after_success:
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages - travis-cargo doc-upload
- travis-cargo coveralls
env: env:
global: global: