Switch from travis-cargo to cargo-travis (#44)
travis-cargo no longer works with coveralls, and appears to be unmaintained. This change use regular cargo to build and test. It now uses cargo-travis to push test results to coveralls. This will also build nightly, and only push test results on the stable build.
This commit is contained in:
parent
ecda5165fb
commit
32a1cabf6e
1 changed files with 21 additions and 9 deletions
30
.travis.yml
30
.travis.yml
|
|
@ -1,25 +1,37 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: rust
|
language: rust
|
||||||
cache: cargo
|
# Dependencies of kcov, used by coverage
|
||||||
# necessary for `travis-cargo coveralls --no-sudo`
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libcurl4-openssl-dev
|
- libcurl4-openssl-dev
|
||||||
- libelf-dev
|
- libelf-dev
|
||||||
- libdw-dev
|
- libdw-dev
|
||||||
|
- binutils-dev
|
||||||
|
- cmake
|
||||||
|
sources:
|
||||||
|
- kalakris-cmake
|
||||||
|
|
||||||
|
|
||||||
rust:
|
rust:
|
||||||
- 1.20.0
|
|
||||||
- stable
|
- stable
|
||||||
- beta
|
- beta
|
||||||
|
- nightly
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- rust: nightly
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- |
|
- |
|
||||||
pip install 'travis-cargo<0.2' --user &&
|
cargo install cargo-travis &&
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
export PATH=$HOME/.cargo/bin:$PATH
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
travis-cargo build &&
|
cargo build &&
|
||||||
travis-cargo test &&
|
cargo test &&
|
||||||
travis-cargo bench
|
cargo bench
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- travis-cargo coveralls --exclude-pattern=/target --no-sudo
|
- "if [ $TRAVIS_RUST_VERSION = stable ]; then cargo coveralls; fi"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue