-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
50 lines (42 loc) · 827 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: rust
sudo: false
cache: cargo
rust:
- stable
- beta
- nightly
os:
- linux
- osx
# Set global environment only
env:
global:
- RUST_BACKTRACE=1
notifications:
email:
on_success: never
matrix:
fast_finish: true
allow_failures:
- rust: nightly
include:
- name: 'Rust: format check'
rust: stable
install:
- rustup component add rustfmt
script:
- cargo fmt --verbose --all -- --check
- name: 'Rust: style check'
if: env(ENABLE_CLIPPY) = 1
rust: stable
install:
- rustup component add clippy
script:
- cargo clippy --verbose --all -- -D warnings
- name: 'Rust: code coverage'
rust: stable
os: linux
install:
- cargo install cargo-tarpaulin
script:
- cargo tarpaulin --verbose --ciserver travis-ci --coveralls $TRAVIS_JOB_ID