2015-11-23 18:51:10 +00:00
|
|
|
sudo: true
|
2015-11-23 18:24:34 +00:00
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- nightly
|
|
|
|
- beta
|
|
|
|
- stable
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
before_script:
|
2015-11-26 22:35:16 +00:00
|
|
|
- ! ' set -e ;
|
|
|
|
pip install ''travis-cargo<0.2'' --user ;
|
|
|
|
export PATH=$HOME/.local/bin:$PATH ;
|
|
|
|
wget https://github.com/jedisct1/libsodium/releases/download/1.0.3/libsodium-1.0.3.tar.gz ;
|
|
|
|
tar xvfz libsodium-1.0.3.tar.gz ;
|
|
|
|
pushd libsodium-1.0.3 ;
|
|
|
|
./configure --prefix=/usr ;
|
|
|
|
make ;
|
|
|
|
sudo make install ;
|
|
|
|
popd ;
|
2015-11-23 20:53:33 +00:00
|
|
|
'
|
2015-11-23 18:24:34 +00:00
|
|
|
script:
|
2015-11-26 22:35:16 +00:00
|
|
|
- ! ' set -e ;
|
|
|
|
travis-cargo build ;
|
|
|
|
travis-cargo build -- --features "crypto" ;
|
|
|
|
travis-cargo test -- --features "crypto" ;
|
|
|
|
travis-cargo bench -- --features "crypto" ;
|
|
|
|
travis-cargo coverage ;
|
2015-11-23 20:53:33 +00:00
|
|
|
'
|
2015-11-23 18:24:34 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
|
|
|
after_success:
|
2015-11-26 22:35:16 +00:00
|
|
|
- ! ' set -e ;
|
|
|
|
rm -rf target/kcov ;
|
|
|
|
rm target/debug/vpncloud-* ;
|
|
|
|
cargo test --features "crypto" ;
|
2015-11-26 22:42:13 +00:00
|
|
|
kcov/build/src/kcov --skip-solibs --exclude-pattern=/.cargo --coveralls-id=$TRAVIS_JOB_ID target/kcov target/debug/vpncloud-* ;
|
2015-11-26 22:31:10 +00:00
|
|
|
'
|
2015-11-23 18:24:34 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
|