forked from libguestfs/nbdkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
65 lines (63 loc) · 1.61 KB
/
.cirrus.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
57
58
59
60
61
62
63
64
65
rust_test_task:
matrix:
- name: rust-1.46.0
container:
image: rust:1.46.0
env:
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
- name: rust-stable
container:
image: rust:latest
env:
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
- name: rust-nightly
container:
image: rustlang/rust:nightly
env:
CARGO_ARGS: --all-features
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
cargo_cache:
folder: $CARGO_HOME/registry
build_script:
- cd plugins/rust; cargo build $CARGO_ARGS
test_script:
- cd plugins/rust; cargo test $CARGO_ARGS
example_script:
- cd plugins/rust; cargo build $CARGO_ARGS --examples
doc_script:
- cd plugins/rust; cargo doc $CARGO_ARGS --no-deps
before_cache_script: rm -rf $CARGO_HOME/registry/index
minver_task:
name: minver
depends_on:
- rust-1.46.0
- rust-stable
- rust-nightly
- rust-clippy
container:
image: rustlang/rust:nightly
env:
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
cargo_cache:
folder: $CARGO_HOME/registry
test_script:
- cd plugins/rust
- cargo update -Zminimal-versions
- cargo test --all-features
before_cache_script: rm -rf $CARGO_HOME/registry/index
rust_clippy_task:
name: rust-clippy
matrix:
- container:
image: rustlang/rust:nightly
cargo_cache:
folder: $CARGO_HOME/registry
lint_script:
- rustup component add clippy
- cd plugins/rust
- cargo clippy --all-features --all-targets -- -D warnings
before_cache_script: rm -rf $CARGO_HOME/registry/index