File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -o errexit
4
+
5
+ . ~ /.cargo/env
6
+ rustup update $RUST_VERSION
7
+
8
+ rustup run $RUST_VERSION cargo build
Original file line number Diff line number Diff line change @@ -102,6 +102,16 @@ functions:
102
102
${PREPARE_SHELL}
103
103
.evergreen/run-tests-serde.sh
104
104
105
+ " compile only " :
106
+ - command : shell.exec
107
+ type : test
108
+ params :
109
+ shell : bash
110
+ working_dir : " src"
111
+ script : |
112
+ ${PREPARE_SHELL}
113
+ RUST_VERSION=${RUST_VERSION} .evergreen/compile-only.sh
114
+
105
115
" check rustfmt " :
106
116
- command : shell.exec
107
117
type : test
@@ -154,6 +164,10 @@ tasks:
154
164
commands :
155
165
- func : " run serde tests"
156
166
167
+ - name : " compile-only"
168
+ commands :
169
+ - func : " compile only"
170
+
157
171
- name : " check-rustfmt"
158
172
commands :
159
173
- func : " check rustfmt"
@@ -162,6 +176,18 @@ tasks:
162
176
commands :
163
177
- func : " check clippy"
164
178
179
+ axes :
180
+ - id : " extra-rust-versions"
181
+ values :
182
+ - id : " min"
183
+ display_name : " 1.43 (minimum supported version)"
184
+ variables :
185
+ RUST_VERSION : " 1.43.1"
186
+ - id : " nightly"
187
+ display_name : " nightly"
188
+ variables :
189
+ RUST_VERSION : " nightly"
190
+
165
191
buildvariants :
166
192
-
167
193
name : " tests"
@@ -172,6 +198,15 @@ buildvariants:
172
198
- name : " test"
173
199
- name : " test-u2i"
174
200
- name : " test-serde"
201
+
202
+ - matrix_name : " compile only"
203
+ matrix_spec :
204
+ extra-rust-versions : " *"
205
+ display_name : " Compile on Rust ${extra-rust-versions}"
206
+ run_on :
207
+ - ubuntu1804-test
208
+ tasks :
209
+ - name : " compile-only"
175
210
-
176
211
name : " lint"
177
212
display_name : " Lint"
You can’t perform that action at this time.
0 commit comments