forked from http-rs/tide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (49 loc) · 1.13 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: rust
rust: nightly-2019-05-09
cache: cargo
before_script:
- >
[[ "$(cargo-sweep --version)" == "cargo-sweep 0.4.1" ]]
|| cargo install cargo-sweep
- cargo sweep --stamp
before_cache:
- cargo sweep --file
matrix:
include:
- name: cargo doc
env: [CACHE_NAME=docs]
script:
- RUSTDOCFLAGS=-Dwarnings cargo doc
-Zmtime-on-use
--all --all-features
--exclude tide
--no-deps
- name: cargo fmt
cache: false
before_script: []
install:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- name: cargo clippy
env: [CACHE_NAME=clippy]
install:
- rustup component add clippy
script:
- cargo clippy
-Zmtime-on-use
--all --all-targets
-- -Dwarnings
- name: cargo build --no-default-features
env: [CACHE_NAME=no-default-features]
script:
- cargo build
-Zmtime-on-use
--manifest-path tide-core/Cargo.toml
--no-default-features
- cargo build
-Zmtime-on-use
--no-default-features
- name: cargo test
script:
- cargo test -Zmtime-on-use --all --verbose