-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (37 loc) · 919 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
language: rust
rust:
- stable
- beta
- nightly
sudo: false
cache: cargo
matrix:
allow_failures:
- rust: nightly
- os: windows
fast_finish: true
include:
- name: "Clippy"
rust: stable
before_script: rustup component add clippy
script: cargo clippy --all-targets --all-features -- -D warnings
- name: "rustfmt"
rust: stable
before_script: rustup component add rustfmt
script: cargo fmt --all -- --check
- name: "warnings"
rust: stable
script: cargo check --all --features strict
- name: "release"
rust: stable
script:
- cargo build --verbose --all --release
- cargo test --verbose --all --release
- cargo doc --verbose --all --release
- os: osx
osx_image: xcode10
- os: windows
script:
- cargo build --all --verbose
- cargo test --all --verbose
- cargo doc --all --verbose