Skip to content

Commit

Permalink
ci: add travis ci config
Browse files Browse the repository at this point in the history
Signed-off-by: Fullstop000 <fullstop1005@gmail.com>
  • Loading branch information
Fullstop000 committed Apr 19, 2019
1 parent adab9b3 commit 48cea1b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .travis.yml
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

0 comments on commit 48cea1b

Please sign in to comment.