Simplify Travis config and test on mac/win
-sudo: false
language: rust
-matrix:
+cache: cargo
+jobs:
include:
- - rust: stable
- - rust: beta
- - rust: nightly
- allow_failures:
- - rust: beta
- - rust: nightly
- fast_finish: true
-
-# kcov setup
-#
-# FIXME: Disabled while we wait for a Rust fix to land on stable:
-# https://github.com/rust-lang/rust/issues/47309
-#
-# env: RUSTFLAGS="-C link-dead-code"
-# addons:
-# apt:
-# packages:
-# - libcurl4-openssl-dev
-# - libelf-dev
-# - libdw-dev
-# - binutils-dev
-# - cmake
-# sources:
-# - kalakris-cmake
-# before_script:
-# - |
-# cargo install --force cargo-travis &&
-# export PATH=$HOME/.cargo/bin:$PATH
+ - os: linux
+ rust: stable
+ - os: osx
+ rust: stable
+ - os: windows
+ rust: stable-msvc
script:
- cargo build --verbose
- cargo test --verbose
- |
- if [ $TRAVIS_RUST_VERSION == "nightly" ]; then
- cargo install clippy && cargo clippy -- -Dclippy
+ if [ "$TRAVIS_OS_NAME" == "linux" ]; then
+ rustup component add clippy
+ cargo clippy --verbose
fi
-
-# after_success:
-# - cargo coveralls
