-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fullstop000 <fullstop1005@gmail.com>
- Loading branch information
1 parent
adab9b3
commit 48cea1b
Showing
1 changed file
with
40 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
language: rust | ||
cache: cargo | ||
sudo: required | ||
rust: | ||
- stable | ||
- nightly | ||
|
||
# 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 | ||
|
||
matrix: | ||
allow_failures: | ||
- rust: stable | ||
fast_finish: true | ||
|
||
before_script: | ||
- export PATH=$HOME/.cargo/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 | ||
|
||
script: | ||
- cargo build --verbose --all | ||
- cargo test --verbose --all | ||
|
||
after_success: | ||
# measure code coverage and upload to coveralls.io | ||
- cargo coveralls | ||
env: | ||
global: | ||
- RUST_BACKTRACE=1 |