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 language: rust
cache: cargo
rust: rust:
- nightly - nightly
- beta - beta
- stable - stable
matrix: matrix:
allow_failures: allow_failures:
- rust: nightly - 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: addons:
apt: apt:
packages: packages:
@ -26,16 +16,22 @@ addons:
- libelf-dev - libelf-dev
- libdw-dev - libdw-dev
- binutils-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: after_success:
- ! ' set -e ; - cargo coveralls
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
env: env:
global: global:
- TRAVIS_CARGO_NIGHTLY_FEATURE="" - TRAVIS_CARGO_NIGHTLY_FEATURE=""
notifications:
email:
on_success: never