-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (25 loc) · 1.01 KB
/
.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
language: rust
dist: focal
before_install:
- curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
matrix:
include:
- os: linux
dist: focal
rust: nightly
script:
- rustup component add llvm-tools-preview rustfmt
- cargo fmt --all -- --check
# - cargo clippy --all-targets --all-features -- --deny warnings
- cargo check --all-targets
- cd observability/ && cargo check && cd ..
- cd fuzz/ && cargo check && cd ..
- cargo test --verbose
- cargo clean
- cargo test --verbose --features "snappy_compression"
# TODO: uncomment it when issue(https://github.com/rust-lang/rust/issues/79565) is fixed
# - export RUST_LOG=debug
# - export RUSTFLAGS="-Zinstrument-coverage"
# - LLVM_PROFILE_FILE="kvlite-%p-%m.profraw" cargo test --verbose --features "snappy_compression"
# - ./grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
# - bash <(curl -s https://codecov.io/bash) -f lcov.info