Skip to content

Commit 8d1f956

Browse files
committed
Make the build script fail faster
1 parent bbdb36f commit 8d1f956

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ matrix:
4848
script: sh ci/build.sh
4949
stage: tools-and-build-and-tier1
5050
rust: nightly
51-
install: true
51+
install:
52+
- rustup component add rust-src
53+
- cargo install xargo
5254
- name: "Build Stable Rust"
5355
script: sh ci/build.sh
5456
stage: tools-and-build-and-tier1

ci/build.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test_target() {
3030
;;
3131
esac
3232

33-
rustup target add "${TARGET}" --toolchain "${RUST}" || true
33+
rustup target add "${TARGET}" --toolchain "${RUST}"
3434

3535
# Test that libc builds without any default features (no libstd)
3636
"$CARGO" "+${RUST}" build -vv $opt --no-default-features --target "${TARGET}"
@@ -198,9 +198,6 @@ x86_64-unknown-openbsd
198198
"
199199

200200
if [ "${RUST}" = "nightly" ] && [ "${OS}" = "linux" ]; then
201-
rustup component add rust-src || true
202-
cargo install xargo || true
203-
204201
for TARGET in $RUST_LINUX_NO_CORE_TARGETS; do
205202
RUST_LIBC_NO_CORE_BUILD=1 test_target xargo "$TARGET" 1
206203
done

0 commit comments

Comments
 (0)