Skip to content

Instantly share code, notes, and snippets.

@tophatsteve
Created October 30, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tophatsteve/7b2369fcaa8dc5f2210364812821f8c1 to your computer and use it in GitHub Desktop.
Save tophatsteve/7b2369fcaa8dc5f2210364812821f8c1 to your computer and use it in GitHub Desktop.
sudo: required
language: rust
# Cache cargo symbols for faster build
cache: cargo
# Dependencies of kcov, used by coverage
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake # also required for cargo-update
sources:
- kalakris-cmake
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
- rust: beta
before_script:
- export PATH=$HOME/.cargo/bin:$PATH
- rustup component add rustfmt-preview
- rustup component add clippy-preview
- cargo install cargo-update || echo "cargo-update already installed"
- cargo install cargo-travis || echo "cargo-travis already installed"
- cargo install-update -a # update outdated cached binaries
script:
- cargo test
- cargo fmt -- --check
- cargo clippy -- -D warnings
after_success:
# measure code coverage and upload to coveralls.io
- cargo coveralls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment