Skip to content

Commit a91bf77

Browse files
author
Jorge Aparicio
authored
Merge pull request #58 from japaric/ci
travis: use latest docker image
2 parents c91a6d1 + 170a977 commit a91bf77

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

ci/env.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ if [[ $TARGET != $HOST && ! $TARGET =~ ^i.86- ]]; then
4040
;;
4141
esac
4242

43+
export CARGO_TARGET_$(echo $TARGET | tr a-z- A-Z_)_LINKER=$GCC_TRIPLE-gcc
44+
4345
if [[ $RUN_TESTS == y ]]; then
4446
# NOTE(export) so this can reach the processes that `cargo test` spawns
4547
export QEMU_LD_PREFIX=/usr/$GCC_TRIPLE

ci/install.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ install_qemu() {
1111
}
1212

1313
install_gist() {
14-
gem install gist -v 4.5.0
14+
if [[ $OSX ]]; then
15+
gem install gist -v 4.5.0
16+
fi
1517
}
1618

1719
install_binutils() {
@@ -38,21 +40,13 @@ add_rustup_target() {
3840
fi
3941
}
4042

41-
install_xargo() {
42-
if [[ $CARGO == xargo ]]; then
43-
curl -sf "https://raw.githubusercontent.com/japaric/rust-everywhere/master/install.sh" | \
44-
bash -s -- --from japaric/xargo --at /root/.cargo/bin --vers 0.1.5
45-
fi
46-
}
47-
4843
main() {
4944
if [[ $OSX || ${IN_DOCKER_CONTAINER:-n} == y ]]; then
5045
install_qemu
5146
install_gist
5247
install_binutils
5348
install_rust
5449
add_rustup_target
55-
install_xargo
5650
fi
5751
}
5852

ci/script.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ run_tests() {
4242

4343
main() {
4444
if [[ $LINUX && ${IN_DOCKER_CONTAINER:-n} == n ]]; then
45-
local tag=2016-08-24
46-
45+
# NOTE The Dockerfile of this image is in the docker branch of this repository
4746
docker run \
4847
--privileged \
4948
-e IN_DOCKER_CONTAINER=y \
@@ -52,7 +51,7 @@ main() {
5251
-e TRAVIS_COMMIT=$TRAVIS_COMMIT \
5352
-e TRAVIS_OS_NAME=$TRAVIS_OS_NAME \
5453
-v $(pwd):/mnt \
55-
japaric/rustc-builtins:$tag \
54+
japaric/rustc-builtins \
5655
sh -c 'cd /mnt;
5756
bash ci/install.sh;
5857
bash ci/script.sh'

0 commit comments

Comments
 (0)