Created
October 30, 2018 16:35
-
-
Save tophatsteve/7b2369fcaa8dc5f2210364812821f8c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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