Switch to cargo-kcov.

This commit is contained in:
kennytm 2016-06-05 00:27:39 +08:00
parent 5a7a1c65f0
commit d2804e5b53
2 changed files with 10 additions and 10 deletions

View file

@ -18,11 +18,10 @@ os:
rust:
- 1.8.0
- 1.9.0
- nightly
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=bench
matrix:
- ARCH=x86_64
- ARCH=i686
@ -30,7 +29,8 @@ env:
matrix:
allow_failures:
- env: ARCH=i686
# FIXME: all i686 build panics with the message "Box<Any>", cause all `should_panic` tests to fail.
rust: 1.8.0
# Note: on 1.8.0, all i686 build panics with the message "Box<Any>", cause all `should_panic` tests to fail.
install:
- if [ "$TRAVIS_OS_NAME" = 'linux' ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
@ -43,13 +43,13 @@ install:
mv "rust-$TRAVIS_RUST_VERSION-$HOST/rust-std-$HOST/lib/rustlib/$HOST" "$SYSROOT/lib/rustlib"
fi
before_script:
- pip install 'travis-cargo<0.2' --user
- export PATH=$HOME/.local/bin:$HOME/Library/Python/2.7/bin:$PATH
script:
- cargo test --target "$HOST"
- travis-cargo bench -- --target "$HOST"
- if [ "$TRAVIS_RUST_VERSION" = 'nightly' ]; then cargo bench --target "$HOST" --features bench; fi
after_success:
- travis-cargo coveralls --no-sudo --verify
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH
- cargo install cargo-kcov
- cargo kcov --print-install-kcov-sh | bash
- cargo kcov --target "$HOST" --coveralls -- --verify

View file

@ -2,7 +2,7 @@
name = "qrcode"
description = "QR code encoder in Rust"
license = "Apache-2.0"
version = "0.1.7"
version = "0.1.8"
authors = ["kennytm <kennytm@gmail.com>"]
keywords = ["qrcode"]
repository = "https://github.com/kennytm/qrcode-rust"