-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (53 loc) · 1.37 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
language: rust
rust:
- stable
- 1.34.2
- 1.32.0
- 1.31.1
- beta
- nightly
matrix:
include:
- rust: stable
env: TASK=rustfmt
before_script:
- rustup component add rustfmt
script:
- cargo fmt -- --check
- cd examples/actix && cargo fmt -- --check
- cd ../gotham && cargo fmt -- --check
- cd ../iron && cargo fmt -- --check
- cd ../nickel && cargo fmt -- --check
- cd ../simple && cargo fmt -- --check
- cd ../static-sass && cargo fmt -- --check
- cd ../statics && cargo fmt -- --check
- cd ../warp && cargo fmt -- --check
- rust: stable
env: EXAMPLE=ed2018
script: cd examples/$EXAMPLE && cargo test
- rust: stable
env: EXAMPLE=static-sass
script: cd examples/$EXAMPLE && cargo test
- rust: stable
env: EXAMPLE=actix
script: cd examples/$EXAMPLE && cargo test
- rust: stable
env: EXAMPLE=warp
script: cd examples/$EXAMPLE && cargo test
- rust: stable
env: EXAMPLE=gotham
script: cd examples/$EXAMPLE && cargo test
- rust: stable
env: EXAMPLE=nickel
script: cd examples/$EXAMPLE && cargo test
- rust: stable
env: EXAMPLE=iron
script: cd examples/$EXAMPLE && cargo test
allow_failures:
- rust: nightly
env:
script:
- cargo build
- cargo test
- cd examples/simple && cargo test
- cd ../statics && cargo test