~gbmor/clinte

4753eaf79d5b0b0d740ca0a182744a8b67137a8c — Ben Morrison 1 year, 10 months ago fd2f770
using cargo tarpaulin instead of grcov
1 files changed, 3 insertions(+), 20 deletions(-)

M .travis.yml
M .travis.yml => .travis.yml +3 -20
@@ 2,8 2,6 @@ language: rust

rust:
  - stable
  - beta
  - nightly

os: 
  - linux


@@ 23,22 21,7 @@ addons:
      - binutils-dev
      - libiberty-dev

before_script:
    - |
      if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
        cargo install grcov;
        export CARGO_INCREMENTAL=0;
        export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads";
      fi

script:
    - cargo build --verbose $CARGO_OPTIONS
    - cargo test --verbose $CARGO_OPTIONS

after_script:
    - |
      if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
        zip -0 ccov.zip `find . \( -name "clinte*.gc*" \) -print`;
        grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore-dir "/*" -o lcov.info;
        bash <(curl -s https://codecov.io/bash) -f lcov.info;
      fi
    - cargo build --verbose
    - cargo tarpaulin --out Xml
    - bash <(curl -s https://codecov.io/bash)