Skip to content

Add code coverage #641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,31 @@ matrix:
include:
- rust: 1.31.0
env:
- FEATURES='test docs'
- FEATURES='test docs'
- rust: stable
env:
- FEATURES='test docs'
- FEATURES='test docs'
- rust: beta
env:
- FEATURES='test docs'
- CHANNEL='beta'
- FEATURES='test docs'
- CHANNEL='beta'
- rust: nightly
env:
- FEATURES='test docs'
- CHANNEL='nightly'
- FEATURES='test docs'
- CHANNEL='nightly'
env:
global:
- HOST=x86_64-unknown-linux-gnu
- CARGO_INCREMENTAL=0
addons:
apt:
packages:
- libssl-dev
- libopenblas-dev
- gfortran
before_script:
- rustup component add rustfmt
- '[ "$TRAVIS_RUST_VERSION" != stable ] || cargo install cargo-tarpaulin'
script:
- |
cargo fmt --all -- --check &&
Expand Down
1 change: 1 addition & 0 deletions scripts/all-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ cargo test --verbose --features "$FEATURES"
cargo test --manifest-path=serialization-tests/Cargo.toml --verbose
cargo test --manifest-path=blas-tests/Cargo.toml --verbose
CARGO_TARGET_DIR=target/ cargo test --manifest-path=numeric-tests/Cargo.toml --verbose
([ "$CHANNEL" != "stable" ] || cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID )
([ "$CHANNEL" != "beta" ] || (rustup component add clippy && cargo clippy))
([ "$CHANNEL" != "nightly" ] || cargo bench --no-run --verbose --features "$FEATURES")