Fixed travis-ci

This commit is contained in:
Dennis Schwerdel 2019-02-19 19:44:54 +01:00
parent 62186152e4
commit 2c818d7079
1 changed files with 26 additions and 30 deletions

View File

@ -1,24 +1,14 @@
sudo: true
dist: xenial
sudo: required
language: rust
cache: cargo
rust:
- nightly
- beta
- stable
- nightly
- beta
- stable
matrix:
allow_failures:
- rust: nightly
before_script:
- ! ' set -e ;
pip install ''travis-cargo<0.2'' --user ;
export PATH=$HOME/.local/bin:$PATH ;
'
script:
- ! ' set -e ;
travis-cargo build ;
travis-cargo test ;
travis-cargo bench ;
travis-cargo coverage || true ;
'
addons:
apt:
packages:
@ -26,16 +16,22 @@ addons:
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
- ruby-ronn
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 && cargo test
after_success:
- ! ' set -e ;
rm -rf target/kcov ;
rm target/debug/vpncloud-* ;
cargo test --no-run ;
kcov/build/src/kcov --verify --exclude-pattern=/libsodium/,/x86_64-linux-gnu/,/.cargo --coveralls-id=$TRAVIS_JOB_ID target/kcov target/debug/vpncloud-* || true ;
'
notifications:
email:
on_success: never
- cargo coveralls
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
notifications:
email:
on_success: never