forked from 10xjeff/zarr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (36 loc) · 951 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
notifications:
email: false
language: rust
sudo: required
rust:
- stable
- beta
- nightly
addons:
apt:
packages:
- libssl-dev
cache: cargo
matrix:
allow_failures:
- rust: nightly
before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
fi
before_script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
rustup component add clippy;
fi'
script:
- RUSTFLAGS="-D warnings" cargo build --verbose
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
cargo clippy --all -- -D warnings;
fi'
- cargo test --verbose
- cargo test --examples --verbose
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo tarpaulin --out Xml --no-default-features --features=filesystem,use_ndarray,gzip,lz_pure --run-types Doctests Tests
bash <(curl -s https://codecov.io/bash)
fi