Skip to content

Commit c13ab42

Browse files
committed
cirrus-ci: add configuration file
Fixes: #17
1 parent 522bf52 commit c13ab42

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.cirrus.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
clippy_task:
2+
container:
3+
image: rustlang/rust:nightly
4+
keyutils_script: apt-get update && apt-get install libkeyutils-dev
5+
component_script: rustup component add clippy
6+
update_script: cargo +nightly update
7+
toolchain_cache:
8+
folder: $RUSTUP_HOME
9+
fingerprint_script: rustc +nightly --version
10+
cargo_cache:
11+
folder: $CARGO_HOME/registry
12+
fingerprint_script: cat Cargo.lock
13+
fmt_script: cargo +nightly clippy
14+
15+
rustfmt_task:
16+
container:
17+
image: rustlang/rust:nightly
18+
keyutils_script: apt-get update && apt-get install libkeyutils-dev
19+
component_script: rustup component add rustfmt
20+
fmt_script: cargo fmt --all -- --check
21+
22+
linux_task:
23+
container:
24+
image: rust:latest
25+
matrix:
26+
- env:
27+
RUSTVER: 1.32.0
28+
- env:
29+
RUSTVER: stable
30+
- allow_failures: true
31+
env:
32+
RUSTVER: nightly
33+
keyutils_script: apt-get update && apt-get install libkeyutils-dev
34+
rustup_script: rustup toolchain install $RUSTVER
35+
toolchain_cache:
36+
folder: $RUSTUP_HOME
37+
fingerprint_script: rustc +$RUSTVER --version
38+
update_script: cargo +$RUSTVER update
39+
cargo_cache:
40+
folder: $CARGO_HOME/registry
41+
fingerprint_script: cat Cargo.lock
42+
build_script: cargo +$RUSTVER build
43+
test_script: cargo +$RUSTVER test
44+
before_cache_script: rm -rf $CARGO_HOME/registry/index

0 commit comments

Comments
 (0)