language: rust
sudo: false
rust:
- stable
- beta
- nightly
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
before_script:
- |
if [[ $TRAVIS_OS_NAME == "linux" ]]; then
cargo install cargo-travis &&
export PATH=$HOME/.cargo/bin:$PATH;
fi
script:
- |
cargo build &&
cargo test &&
cargo run --example example &&
cargo run --example minimal &&
cargo bench &&
cargo doc
after_success:
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then cargo coveralls; fi