File tree Expand file tree Collapse file tree 5 files changed +66
-0
lines changed Expand file tree Collapse file tree 5 files changed +66
-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
+
7
+ rustup run $RUST_VERSION cargo build --no-default-features --features async-std-runtime
8
+ rustup run $RUST_VERSION cargo build --no-default-features --features sync
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -o errexit
4
+
5
+ . ~ /.cargo/env
6
+
7
+ rustup run $RUST_VERSION cargo build
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
+ if [ " $ASYNC_RUNTIME " = " tokio" ]; then
9
+ .evergreen/compile-only-tokio.sh
10
+ elif [ " $ASYNC_RUNTIME " = " async-std" ]; then
11
+ .evergreen/compile-only-async-std.sh
12
+ else
13
+ echo " invalid async runtime: ${ASYNC_RUNTIME} " >&2
14
+ exit 1
15
+ fi
Original file line number Diff line number Diff line change @@ -339,6 +339,16 @@ functions:
339
339
export MONGO_ATLAS_FREE_TIER_REPL_URI_SRV='${MONGO_ATLAS_FREE_TIER_REPL_URI_SRV}'
340
340
ASYNC_RUNTIME=${ASYNC_RUNTIME} .evergreen/run-atlas-tests.sh
341
341
342
+ " compile only " :
343
+ - command : shell.exec
344
+ type : test
345
+ params :
346
+ shell : bash
347
+ working_dir : " src"
348
+ script : |
349
+ ${PREPARE_SHELL}
350
+ ASYNC_RUNTIME=${ASYNC_RUNTIME} RUST_VERSION=${RUST_VERSION} .evergreen/compile-only.sh
351
+
342
352
" check rustfmt " :
343
353
- command : shell.exec
344
354
type : test
@@ -629,6 +639,10 @@ tasks:
629
639
commands :
630
640
- func : " run atlas tests"
631
641
642
+ - name : " compile-only"
643
+ commands :
644
+ - func : " compile only"
645
+
632
646
- name : " check-rustfmt"
633
647
commands :
634
648
- func : " check rustfmt"
@@ -640,6 +654,16 @@ tasks:
640
654
641
655
642
656
axes :
657
+ - id : " extra-rust-versions"
658
+ values :
659
+ - id : " min"
660
+ display_name : " 1.43 (minimum supported version)"
661
+ variables :
662
+ RUST_VERSION : " 1.43.1"
663
+ - id : " nightly"
664
+ display_name : " nightly"
665
+ variables :
666
+ RUST_VERSION : " nightly"
643
667
- id : " mongodb-version"
644
668
display_name : MongoDB Version
645
669
values :
@@ -757,6 +781,15 @@ buildvariants:
757
781
display_name : " AWS Auth ${os} with ${async-runtime}"
758
782
tasks :
759
783
- " .aws-auth"
784
+ - matrix_name : " compile-only"
785
+ matrix_spec :
786
+ os :
787
+ - ubuntu-18.04
788
+ async-runtime : " *"
789
+ extra-rust-versions : " *"
790
+ display_name : " Compile on Rust ${extra-rust-versions} with ${async-runtime}"
791
+ tasks :
792
+ - " compile-only"
760
793
761
794
-
762
795
name : " lint"
Original file line number Diff line number Diff line change 18
18
echo ' export PATH=$PATH:~/.cargo/bin' >> ~ /.cargo/env
19
19
20
20
echo " export CARGO_NET_GIT_FETCH_WITH_CLI=true" >> ~ /.cargo/env
21
+
21
22
. ~ /.cargo/env
23
+
24
+ # Install nightly rustfmt
22
25
rustup toolchain install nightly -c rustfmt
You can’t perform that action at this time.
0 commit comments