From 4770d4b9f9071122ef68d9a75d46e63da2871925 Mon Sep 17 00:00:00 2001 From: Dennis Schwerdel Date: Thu, 26 Nov 2015 23:31:10 +0100 Subject: [PATCH] Changed travic config --- .travis.yml | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5e29b03..a740465 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,17 +8,24 @@ matrix: allow_failures: - rust: nightly before_script: -- ! '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; - cd libsodium-1.0.3 && ./configure --prefix=/usr && make && sudo make install && cd .. +- ! ' 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 ' script: -- ! 'travis-cargo build && - travis-cargo build -- --features "crypto" && - travis-cargo test -- --features "crypto" && +- ! ' set -e + travis-cargo build + travis-cargo build -- --features "crypto" + travis-cargo test -- --features "crypto" travis-cargo bench -- --features "crypto" + travic-cargo coverage ' addons: apt: @@ -27,7 +34,12 @@ addons: - libelf-dev - libdw-dev after_success: -- travis-cargo coveralls --no-sudo -- --features "crypto" +- ! ' set -e + rm -rf target/kcov + rm target/debug/vpncloud-* + cargo test --features "crypto" + kcov/build/src/kcov --skip-solibs --exclude-pattern=/.cargo --coveralls-id=$TRAVIS_JOB_ID target/kcov target/debug/vpncloud-* +' notifications: email: on_success: never