Skip to content

Commit

Permalink
Update Travis config to update Coveralls
Browse files Browse the repository at this point in the history
This allows Coveralls to monitor the code coverage overtime and check
pull requests to ensure there is sufficient coverage.
  • Loading branch information
j-richey committed Nov 24, 2019
1 parent e196a09 commit b482b5f
Showing 1 changed file with 44 additions and 8 deletions.
52 changes: 44 additions & 8 deletions .travis.yml
@@ -1,21 +1,57 @@
language: rust
cache: cargo

rust:
- stable
- beta
- nightly
before_script:
- rustup component add clippy
- rustup component add rustfmt
jobs:
allow_failures:
- rust: nightly
fast_finish: true

os:
- linux
- osx
- windows

before_script:
- rustup component add clippy
- rustup component add rustfmt

script:
- RUSTFLAGS="-D warnings" cargo build --verbose
- cargo test --verbose
- cargo clippy -- -D warnings
- cargo fmt --all -- --check

jobs:
fast_finish: true
allow_failures:
- rust: nightly
# The stable Linux build uploads results to Coveralls.
exclude:
- rust: stable
os: linux
include:
- rust: stable
os: linux
addons:
# Dependencies of kcov, used for cargo-travis.
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
- rustup component add clippy
- rustup component add rustfmt
after_success:
- cargo coveralls
# A basic check is done for the nightly version of Rust
- rust: nightly
os: linux
script:
- RUSTFLAGS="-D warnings" cargo build --verbose
- cargo test --verbose

0 comments on commit b482b5f

Please sign in to comment.