forked from raymanfx/libv4l-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (43 loc) · 917 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
language: rust
rust: stable
os: linux
# Need to cache the whole `.cargo` directory to keep .crates.toml for
# cargo-update to work
cache:
directories:
- /home/travis/.cargo
# But don't cache the cargo registry
before_cache:
- rm -rf /home/travis/.cargo/registry
before_install:
- sudo apt-get install libv4l-dev
jobs:
allow_failures:
env:
- CAN_FAIL=true
fast_finish: true
include:
- {}
- stage: check
script:
- cargo check
- cargo check --no-default-features --features libv4l
- stage: test
script:
- cargo test
- stage: fmt
before_script:
- rustup component add rustfmt
script:
- cargo fmt -- --check
- stage: clippy
env: CAN_FAIL=true
before_script:
- rustup component add clippy
script:
- cargo clippy -- -D warnings
stages:
- check
- test
- fmt
- clippy