File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 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:
102102 ${PREPARE_SHELL}
103103 .evergreen/run-tests-serde.sh
104104
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+
105115 " check rustfmt " :
106116 - command : shell.exec
107117 type : test
@@ -154,6 +164,10 @@ tasks:
154164 commands :
155165 - func : " run serde tests"
156166
167+ - name : " compile-only"
168+ commands :
169+ - func : " compile only"
170+
157171 - name : " check-rustfmt"
158172 commands :
159173 - func : " check rustfmt"
@@ -162,6 +176,18 @@ tasks:
162176 commands :
163177 - func : " check clippy"
164178
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+
165191buildvariants :
166192-
167193 name : " tests"
@@ -172,6 +198,15 @@ buildvariants:
172198 - name : " test"
173199 - name : " test-u2i"
174200 - 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"
175210-
176211 name : " lint"
177212 display_name : " Lint"
You can’t perform that action at this time.
0 commit comments