Skip to content

Commit d65f0f5

Browse files
committed
Try and run less when doing integration tests
And emit rustfmt output so they can be debugged
1 parent 5fb987f commit d65f0f5

File tree

2 files changed

+5
-26
lines changed

2 files changed

+5
-26
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ matrix:
3333
- env: INTEGRATION=log
3434
allow_failures:
3535
- env: INTEGRATION=cargo
36-
- env: INTEGRATION=stdsimd
37-
- env: INTEGRATION=mdbook
3836
- env: INTEGRATION=crater
3937
- env: INTEGRATION=rust-semverver
4038
- env: INTEGRATION=rust-clippy

ci/integration.sh

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ set -ex
44

55
: ${INTEGRATION?"The INTEGRATION environment variable must be set."}
66

7-
# FIXME: this is causing the build to fail when rustfmt is found in .cargo/bin
8-
# but cargo-fmt is not found.
9-
#
107
# `which rustfmt` fails if rustfmt is not found. Since we don't install
118
# `rustfmt` via `rustup`, this is the case unless we manually install it. Once
129
# that happens, `cargo install --force` will be called, which installs
@@ -15,8 +12,8 @@ set -ex
1512
# here after the first installation will find `rustfmt` and won't need to build
1613
# it again.
1714
#
18-
# which rustfmt || cargo install --force
19-
cargo install --force
15+
which cargo-fmt || cargo install --force
16+
# cargo install --force
2017

2118
echo "Integration tests for: ${INTEGRATION}"
2219

@@ -39,41 +36,25 @@ function check_fmt {
3936
if [[ $? != 0 ]]; then
4037
return 1
4138
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
5739
}
5840

5941
case ${INTEGRATION} in
6042
cargo)
6143
git clone --depth=1 https://github.com/rust-lang/${INTEGRATION}.git
6244
cd ${INTEGRATION}
63-
export CFG_DISABLE_CROSS_TESTS=1
64-
check
45+
check_fmt
6546
cd -
6647
;;
6748
failure)
6849
git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION}.git
6950
cd ${INTEGRATION}/failure-1.X
70-
check
51+
check_fmt
7152
cd -
7253
;;
7354
*)
7455
git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION}.git
7556
cd ${INTEGRATION}
76-
check
57+
check_fmt
7758
cd -
7859
;;
7960
esac

0 commit comments

Comments
 (0)