-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.cirrus.yml
143 lines (138 loc) · 4.42 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
task:
name: FreeBSD 12 amd64 stable
freebsd_instance:
image: freebsd-12-1-release-amd64
cpu: 1
memory: 1
env:
RUST_BACKTRACE: 1
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock 2> /dev/null || true
build_script:
- . $HOME/.cargo/env
- cargo build
- cargo build --features mio_06
- cargo build --features mio_07
- cargo build --all-features
test_script:
- . $HOME/.cargo/env
- export RUSTFLAGS='--cfg feature="os-poll"'
- kldload mqueuefs
- cargo test --all-features --no-fail-fast
- cargo test --all-features --no-fail-fast -- --ignored --test-threads 1
- cargo run --example limits
before_cache_script:
- rm -rf $HOME/.cargo/registry/index
task:
name: Linux amd64 1.31
container:
image: rust:1.31
cpu: 1
memory: 1
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock 2> /dev/null || true
build_script:
- cargo build
- cargo build --features mio_06
test_script:
- cargo test --features mio_06
- cargo run --example limits
before_cache_script:
- rm -rf $HOME/.cargo/registry/index
task:
name: Linux amd64 1.39
container:
image: rust:1.39
cpu: 1
memory: 1
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock 2> /dev/null || true
build_script:
- cargo build --features mio_07
test_script:
- export RUSTFLAGS='--cfg feature="os-poll"'
- cargo test --features mio_07 --no-fail-fast
- cargo test --features mio_07 --no-fail-fast -- --ignored --test-threads 1
before_cache_script:
- rm -rf $HOME/.cargo/registry/index
task:
name: Linux amd64 nightly
container:
image: rustlang/rust:nightly
cpu: 1
memory: 1
allow_failures: false
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock 2> /dev/null || true
build_script:
- cargo build -Zfeatures=all -Zminimal-versions
- cargo build -Zfeatures=all -Zminimal-versions --features mio_06
- cargo build -Zfeatures=all -Zminimal-versions --features mio_07
- cargo build -Zfeatures=all -Zminimal-versions --all-features
test_script:
- cargo test -Zfeatures=all -Zminimal-versions
- cargo test -Zfeatures=all -Zminimal-versions --features mio_06
- export RUSTFLAGS='--cfg feature="os-poll"'
- cargo test -Zfeatures=all -Zminimal-versions --features mio_07
- cargo test -Zfeatures=all -Zminimal-versions --all-features
before_cache_script:
- rm -rf $HOME/.cargo/registry/index
task:
name: Linux i686 stable
container:
image: rust:latest
cpu: 1
memory: 1
allow_failures: false
setup_script:
- apt-get update
- apt-get install -yqq gcc gcc-multilib linux-libc-dev
- rustup target add i686-unknown-linux-gnu
- rustup target add i686-unknown-linux-musl
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock 2> /dev/null || true
build_script:
- cargo build --target i686-unknown-linux-gnu --all-features
- cargo build --target i686-unknown-linux-musl --all-features
test_script:
- export RUSTFLAGS='--cfg feature="os-poll"'
- cargo test --target i686-unknown-linux-gnu --all-features
- cargo test --target i686-unknown-linux-musl --all-features
- cargo run --example limits
before_cache_script:
- rm -rf $HOME/.cargo/registry/index
task:
name: Cross-check stable
container:
image: rust:latest
cpu: 1
memory: 1
allow_failures: false
setup_script:
- rustup component add clippy
- rustup target add x86_64-unknown-netbsd
- rustup target add x86_64-sun-solaris
- rustup target add x86_64-unknown-linux-gnux32
- rustup target add aarch64-unknown-linux-gnu
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock 2> /dev/null || true
build_script:
- cargo clippy
- cargo clippy --all-features
- export RUSTFLAGS='--cfg feature="os-poll"'
- cargo check --target x86_64-unknown-netbsd --tests --examples --all-features
- cargo check --target x86_64-sun-solaris --tests --examples
- cargo check --target x86_64-unknown-linux-gnux32 --tests --examples --all-features
- cargo check --target aarch64-unknown-linux-gnu --tests --examples --all-features
before_cache_script:
- rm -rf $HOME/.cargo/registry/index