This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree 2 files changed +28
-8
lines changed 2 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ matrix:
35
35
- env : INTEGRATION=stdsimd
36
36
- env : INTEGRATION=tempdir
37
37
allow_failures :
38
- # Doesn't build
39
- - env : INTEGRATION=futures-rs
40
38
# Doesn't build - seems to be because of an option
41
39
- env : INTEGRATION=packed_simd
42
40
# Test failure
Original file line number Diff line number Diff line change @@ -24,9 +24,25 @@ cargo fmt -- --version
24
24
#
25
25
# * `cargo fmt --all` succeeds without any warnings or errors
26
26
# * `cargo fmt --all -- --check` after formatting returns success
27
- # * `cargo test -all` still passes (formatting did not break the build)
28
- function check_fmt {
29
- cargo test --all
27
+ # * `cargo test --all` still passes (formatting did not break the build)
28
+ function check_fmt_with_all_tests {
29
+ check_fmt_base " --all"
30
+ return $?
31
+ }
32
+
33
+ # Checks that:
34
+ #
35
+ # * `cargo fmt --all` succeeds without any warnings or errors
36
+ # * `cargo fmt --all -- --check` after formatting returns success
37
+ # * `cargo test --lib` still passes (formatting did not break the build)
38
+ function check_fmt_with_lib_tests {
39
+ check_fmt_base " --lib"
40
+ return $?
41
+ }
42
+
43
+ function check_fmt_base {
44
+ local test_args=" $1 "
45
+ cargo test $test_args
30
46
if [[ $? != 0 ]]; then
31
47
return 0
32
48
fi
@@ -54,7 +70,7 @@ function check_fmt {
54
70
cat rustfmt_check_output
55
71
return 1
56
72
fi
57
- cargo test --all
73
+ cargo test $test_args
58
74
if [[ $? != 0 ]]; then
59
75
return $?
60
76
fi
@@ -65,13 +81,19 @@ case ${INTEGRATION} in
65
81
git clone --depth=1 https://github.com/rust-lang/${INTEGRATION} .git
66
82
cd ${INTEGRATION}
67
83
export CFG_DISABLE_CROSS_TESTS=1
68
- check_fmt
84
+ check_fmt_with_all_tests
85
+ cd -
86
+ ;;
87
+ crater)
88
+ git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION} .git
89
+ cd ${INTEGRATION}
90
+ check_fmt_with_lib_tests
69
91
cd -
70
92
;;
71
93
* )
72
94
git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION} .git
73
95
cd ${INTEGRATION}
74
- check_fmt
96
+ check_fmt_with_all_tests
75
97
cd -
76
98
;;
77
99
esac
You can’t perform that action at this time.
0 commit comments