-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (28 loc) · 699 Bytes
/
.travis.yml
File metadata and controls
31 lines (28 loc) · 699 Bytes
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
sudo: required
dist: trusty
language: rust
addons:
apt:
packages:
- libssl-dev
- pkg-config
- zlib1g-dev
rust:
- stable
before_script:
- rustup component add rustfmt
- |
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
rustup component add clippy
fi
script:
- cargo fmt --all -- --check
- cargo build --verbose
- cargo test
after_success:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi