forked from Stebalien/xattr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
50 lines (45 loc) · 1.08 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
cargo_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock || echo ""
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
test: &TEST
test_script:
- . $HOME/.cargo/env || true
- cargo test
doc_script:
- . $HOME/.cargo/env || true
- cargo doc --no-deps
task:
name: FreeBSD
freebsd_instance:
image: freebsd-12-3-release-amd64
# Install Rust
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y
<< : *TEST
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: MacOS
env:
TARGET: x86_64-apple-darwin
osx_instance:
image: big-sur-xcode
setup_script:
- curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
- sh rustup.sh -y
<< : *TEST
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
matrix:
- name: Linux
container:
image: rust:latest
- name: Linux nightly
container:
image: rustlang/rust:nightly
<< : *TEST
before_cache_script: rm -rf $CARGO_HOME/registry/index