mirror of https://github.com/dswd/vpncloud.git
Fixed travis-ci
This commit is contained in:
parent
62186152e4
commit
2c818d7079
40
.travis.yml
40
.travis.yml
|
@ -1,5 +1,7 @@
|
|||
sudo: true
|
||||
dist: xenial
|
||||
sudo: required
|
||||
language: rust
|
||||
cache: cargo
|
||||
rust:
|
||||
- nightly
|
||||
- beta
|
||||
|
@ -7,18 +9,6 @@ rust:
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue