Skip to content

Commit

Permalink
ci: Move to cargo-travis
Browse files Browse the repository at this point in the history
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
Arzte authored Jan 26, 2018
1 parent 882e54f commit 19d94cf
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions .travis.yml
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

0 comments on commit 19d94cf

Please sign in to comment.