sudo: true language: rust rust: - 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 ; export VERSION=1.0.6 ; wget https://github.com/jedisct1/libsodium/releases/download/$VERSION/libsodium-$VERSION.tar.gz ; tar xvfz libsodium-$VERSION.tar.gz ; pushd libsodium-$VERSION ; ./configure --prefix=/usr ; make ; sudo make install ; popd ; ' script: - ! ' set -e ; travis-cargo build ; travis-cargo test ; travis-cargo bench ; travis-cargo coverage ; ' addons: apt: packages: - libcurl4-openssl-dev - libelf-dev - libdw-dev after_success: - ! ' set -e ; rm -rf target/kcov ; rm target/debug/vpncloud-* ; cargo test ; kcov/build/src/kcov --exclude-pattern=/libsodium/,/x86_64-linux-gnu/,/.cargo --coveralls-id=$TRAVIS_JOB_ID target/kcov target/debug/vpncloud-* ; ' notifications: email: on_success: never env: global: - TRAVIS_CARGO_NIGHTLY_FEATURE=""