blob: b8ef2fd8d4452989273dd1ca53c018ec6aa82b62 [file] [log] [blame]
sudo: false
language: rust
rust:
- nightly
- beta
- stable
- 1.9.0
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo build -- --no-default-features &&
travis-cargo test -- --no-default-features
after_success:
- |
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
travis-cargo doc -- --no-default-features &&
mv target/doc target/doc_core &&
travis-cargo doc &&
mv target/doc_core target/doc/core &&
travis-cargo doc-upload
fi
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE="" # no unstable feature
- secure: ddcWXicVcCooC+Dy8guGruZY2bAU3oyGjrxdC3YNfBYdatEKzW1toAiQyN8SRyZyfoHsbb7lh4YeBfv1rpmTPM6nvHMz9CHMlvED8Y+/QuYoKN2qrNiQ7eQ9xSVhOVlha/GMPSZXxmEIuJVj0Dn1D/S4RWyNMKCJdj2YvybPzOU=