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,41 +1,37 @@
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:
- libcurl4-openssl-dev - libcurl4-openssl-dev
- 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 ; env:
rm target/debug/vpncloud-* ; global:
cargo test --no-run ; - TRAVIS_CARGO_NIGHTLY_FEATURE=""
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: notifications:
email: email:
on_success: never on_success: never
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""