language: rust
cache: cargo
env: os:
- linux
- osx
rust:
- stable
- beta
- nightly
- 1.26.0
matrix:
fast_finish: true
allow_failures:
include:
- rust: nightly
env: NAME='cargo-clippy'
before_script:
- rustup component add rustfmt-preview
- rustup component add clippy-preview
script:
- cargo fmt --all -- --check
- cargo clippy
- env: NAME='cargo-travis'
sudo: required before_script:
- cargo install cargo-update || echo "cargo-update already installed"
- cargo install cargo-travis || echo "cargo-travis already installed"
- cargo install-update -a
script:
- |
export RUST_BACKTRACE=1 &&
cargo build --verbose &&
cargo coverage --verbose &&
bash <(curl -s https://codecov.io/bash) -s target/kcov
addons: apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
script: |
export RUST_BACKTRACE=1 &&
cargo build --verbose &&
cargo test --verbose &&
cargo doc --no-deps --verbose