File tree Expand file tree Collapse file tree 2 files changed +5
-26
lines changed Expand file tree Collapse file tree 2 files changed +5
-26
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ matrix:
33
33
- env : INTEGRATION=log
34
34
allow_failures :
35
35
- env : INTEGRATION=cargo
36
- - env : INTEGRATION=stdsimd
37
- - env : INTEGRATION=mdbook
38
36
- env : INTEGRATION=crater
39
37
- env : INTEGRATION=rust-semverver
40
38
- env : INTEGRATION=rust-clippy
Original file line number Diff line number Diff line change 4
4
5
5
: ${INTEGRATION?" The INTEGRATION environment variable must be set." }
6
6
7
- # FIXME: this is causing the build to fail when rustfmt is found in .cargo/bin
8
- # but cargo-fmt is not found.
9
- #
10
7
# `which rustfmt` fails if rustfmt is not found. Since we don't install
11
8
# `rustfmt` via `rustup`, this is the case unless we manually install it. Once
12
9
# that happens, `cargo install --force` will be called, which installs
@@ -15,8 +12,8 @@ set -ex
15
12
# here after the first installation will find `rustfmt` and won't need to build
16
13
# it again.
17
14
#
18
- # which rustfmt || cargo install --force
19
- cargo install --force
15
+ which cargo-fmt || cargo install --force
16
+ # cargo install --force
20
17
21
18
echo " Integration tests for: ${INTEGRATION} "
22
19
@@ -39,41 +36,25 @@ function check_fmt {
39
36
if [[ $? != 0 ]]; then
40
37
return 1
41
38
fi
42
- cargo test --all
43
- if [[ $? != 0 ]]; then
44
- return $?
45
- fi
46
- }
47
-
48
- function check {
49
- cargo test --all
50
- if [[ $? != 0 ]]; then
51
- return 1
52
- fi
53
- check_fmt
54
- if [[ $? != 0 ]]; then
55
- return 1
56
- fi
57
39
}
58
40
59
41
case ${INTEGRATION} in
60
42
cargo)
61
43
git clone --depth=1 https://github.com/rust-lang/${INTEGRATION} .git
62
44
cd ${INTEGRATION}
63
- export CFG_DISABLE_CROSS_TESTS=1
64
- check
45
+ check_fmt
65
46
cd -
66
47
;;
67
48
failure)
68
49
git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION} .git
69
50
cd ${INTEGRATION} /failure-1.X
70
- check
51
+ check_fmt
71
52
cd -
72
53
;;
73
54
* )
74
55
git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION} .git
75
56
cd ${INTEGRATION}
76
- check
57
+ check_fmt
77
58
cd -
78
59
;;
79
60
esac
You can’t perform that action at this time.
0 commit comments