File tree 5 files changed +15
-12
lines changed
5 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,13 @@ before_install:
34
34
- test "$TRAVIS_OS_NAME" = "osx" || docker run --rm --privileged multiarch/qemu-user-static:register
35
35
36
36
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
41
44
42
45
script :
43
46
- cargo generate-lockfile
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM ubuntu:16.04
2
2
RUN apt-get update && \
3
3
apt-get install -y --no-install-recommends \
4
4
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
7
7
ENV AR_thumbv6m_none_eabi=arm-none-eabi-ar \
8
8
CARGO_TARGET_THUMBV6M_NONE_EABI_LINKER=arm-none-eabi-gcc \
9
9
CC_thumbv6m_none_eabi=arm-none-eabi-gcc \
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM ubuntu:16.04
2
2
RUN apt-get update && \
3
3
apt-get install -y --no-install-recommends \
4
4
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
7
7
ENV AR_thumbv7em_none_eabi=arm-none-eabi-ar \
8
8
CARGO_TARGET_THUMBV7EM_NONE_EABI_LINKER=arm-none-eabi-gcc \
9
9
CC_thumbv7em_none_eabi=arm-none-eabi-gcc \
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM ubuntu:16.04
2
2
RUN apt-get update && \
3
3
apt-get install -y --no-install-recommends \
4
4
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
7
7
ENV AR_thumbv7em_none_eabihf=arm-none-eabi-ar \
8
8
CARGO_TARGET_THUMBV7EM_NONE_EABIHF_LINKER=arm-none-eabi-gcc \
9
9
CC_thumbv7em_none_eabihf=arm-none-eabi-gcc \
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM ubuntu:16.04
2
2
RUN apt-get update && \
3
3
apt-get install -y --no-install-recommends \
4
4
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
7
7
ENV AR_thumbv7m_none_eabi=arm-none-eabi-ar \
8
8
CARGO_TARGET_THUMBV7M_NONE_EABI_LINKER=arm-none-eabi-gcc \
9
9
CC_thumbv7m_none_eabi=arm-none-eabi-gcc \
You can’t perform that action at this time.
0 commit comments