forked from rust-av/rust-av
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis-cargo isn't maintained, and as of late, is broken outright https://travis-ci.org/rust-av/rust-av/builds/332787331#L1270 and huonw/travis-cargo#72
- Loading branch information
Showing
1 changed file
with
24 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
sudo: false | ||
language: rust | ||
rust: nightly | ||
|
||
# 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: | ||
- nightly | ||
# Who needs exports when you can have travis do the work? | ||
env: | ||
- PATH=$HOME/.cargo/bin:$PATH | ||
- CARGO_FEATURES_DEFAULT=["nightly"] | ||
|
||
before_script: | ||
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH | ||
- 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 | ||
|
||
# the main build | ||
script: | ||
- | | ||
travis-cargo build && | ||
travis-cargo test && | ||
travis-cargo bench && | ||
travis-cargo --only stable doc | ||
cargo build && | ||
cargo test && | ||
cargo bench && | ||
cargo doc | ||
after_success: | ||
- travis-cargo coveralls --no-sudo | ||
|
||
env: | ||
global: | ||
# override the default `--features unstable` used for the nightly branch (optional) | ||
- TRAVIS_CARGO_NIGHTLY_FEATURE=nightly | ||
|
||
sudo: false | ||
# measure code coverage and upload to coveralls.io | ||
- cargo coveralls |