Skip to content

Commit 8bb7795

Browse files
authored
Merge pull request rust-lang#120 from japaric/xargo-up
CI: use Xargo 0.2.x
2 parents fbf5195 + 5c0e0f2 commit 8bb7795

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

.travis.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ before_install:
3434
- test "$TRAVIS_OS_NAME" = "osx" || docker run --rm --privileged multiarch/qemu-user-static:register
3535

3636
install:
37-
- if case $TARGET in thumb*) false;; *) true;; esac; then
38-
curl https://static.rust-lang.org/rustup.sh |
39-
sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot`;
40-
fi
37+
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION
38+
- source ~/.cargo/env
39+
- case $TARGET in
40+
x86_64-apple-darwin | x86_64-unknown-linux-gnu) ;;
41+
thumbv*-none-eabi*) rustup component add rust-src ;;
42+
*) rustup target add $TARGET;;
43+
esac
4144

4245
script:
4346
- cargo generate-lockfile

ci/docker/thumbv6m-none-eabi/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM ubuntu:16.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
5-
RUN curl -sf "https://raw.githubusercontent.com/japaric/rust-everywhere/master/install.sh" | \
6-
bash -s -- --at /usr/bin --from japaric/xargo --for x86_64-unknown-linux-gnu --tag v0.1.13
5+
RUN curl -LSfs https://japaric.github.io/trust/install.sh | \
6+
sh -s -- --git japaric/xargo --tag v0.2.1 --target x86_64-unknown-linux-gnu --to /usr/bin
77
ENV AR_thumbv6m_none_eabi=arm-none-eabi-ar \
88
CARGO_TARGET_THUMBV6M_NONE_EABI_LINKER=arm-none-eabi-gcc \
99
CC_thumbv6m_none_eabi=arm-none-eabi-gcc \

ci/docker/thumbv7em-none-eabi/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM ubuntu:16.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
5-
RUN curl -sf "https://raw.githubusercontent.com/japaric/rust-everywhere/master/install.sh" | \
6-
bash -s -- --at /usr/bin --from japaric/xargo --for x86_64-unknown-linux-gnu --tag v0.1.13
5+
RUN curl -LSfs https://japaric.github.io/trust/install.sh | \
6+
sh -s -- --git japaric/xargo --tag v0.2.1 --target x86_64-unknown-linux-gnu --to /usr/bin
77
ENV AR_thumbv7em_none_eabi=arm-none-eabi-ar \
88
CARGO_TARGET_THUMBV7EM_NONE_EABI_LINKER=arm-none-eabi-gcc \
99
CC_thumbv7em_none_eabi=arm-none-eabi-gcc \

ci/docker/thumbv7em-none-eabihf/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM ubuntu:16.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
5-
RUN curl -sf "https://raw.githubusercontent.com/japaric/rust-everywhere/master/install.sh" | \
6-
bash -s -- --at /usr/bin --from japaric/xargo --for x86_64-unknown-linux-gnu --tag v0.1.13
5+
RUN curl -LSfs https://japaric.github.io/trust/install.sh | \
6+
sh -s -- --git japaric/xargo --tag v0.2.1 --target x86_64-unknown-linux-gnu --to /usr/bin
77
ENV AR_thumbv7em_none_eabihf=arm-none-eabi-ar \
88
CARGO_TARGET_THUMBV7EM_NONE_EABIHF_LINKER=arm-none-eabi-gcc \
99
CC_thumbv7em_none_eabihf=arm-none-eabi-gcc \

ci/docker/thumbv7m-none-eabi/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM ubuntu:16.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
5-
RUN curl -sf "https://raw.githubusercontent.com/japaric/rust-everywhere/master/install.sh" | \
6-
bash -s -- --at /usr/bin --from japaric/xargo --for x86_64-unknown-linux-gnu --tag v0.1.13
5+
RUN curl -LSfs https://japaric.github.io/trust/install.sh | \
6+
sh -s -- --git japaric/xargo --tag v0.2.1 --target x86_64-unknown-linux-gnu --to /usr/bin
77
ENV AR_thumbv7m_none_eabi=arm-none-eabi-ar \
88
CARGO_TARGET_THUMBV7M_NONE_EABI_LINKER=arm-none-eabi-gcc \
99
CC_thumbv7m_none_eabi=arm-none-eabi-gcc \

0 commit comments

Comments
 (0)