forked from facebookexperimental/MIRAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (34 loc) · 772 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
os:
- linux
sudo: required
dist: trusty
addons:
apt:
packages:
- libssl-dev
language: rust
rust:
- nightly
cache: cargo
before_script:
# install formatter
- rustup component add rustfmt-preview
# install linter
- rustup component add clippy-preview
# install code coverage tool
- RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install --force cargo-tarpaulin || true
script:
# Exit immediately if a command exits with a non-zero status.
- set -e
# Run format checks
- cargo fmt --all -- --check
# Run lint checks
- cargo clippy -- -D warnings
# Build
- cargo build
# Run unit and integration tests
- RUST_BACKTRACE=1 cargo test
# Run code coverage tests
- cargo clean -p mirai
- cargo tarpaulin -v --out Xml || true
- bash <(curl -s https://codecov.io/bash)