File tree Expand file tree Collapse file tree 19 files changed +25
-32
lines changed
aarch64-unknown-linux-gnu
arm-unknown-linux-gnueabihf
arm-unknown-linux-gnueabi
armv7-unknown-linux-gnueabihf
powerpc-unknown-linux-gnu
powerpc64-unknown-linux-gnu
powerpc64le-unknown-linux-gnu Expand file tree Collapse file tree 19 files changed +25
-32
lines changed Original file line number Diff line number Diff line change
1
+ cache : cargo
1
2
dist : trusty
2
3
language : rust
3
4
services : docker
@@ -45,13 +46,13 @@ install:
45
46
script :
46
47
- cargo generate-lockfile
47
48
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
48
- sudo apt-get remove -y qemu-user-static &&
49
- sudo apt-get install -y qemu-user-static &&
50
49
sh ci/run-docker.sh $TARGET;
51
50
else
52
51
cargo test --target $TARGET &&
53
52
cargo test --target $TARGET --release;
54
53
fi
54
+ # Travis can't cache files that are not readable by "others"
55
+ - chmod -R a+r $HOME/.cargo
55
56
56
57
branches :
57
58
only :
Original file line number Diff line number Diff line change @@ -5,6 +5,5 @@ RUN apt-get install -y --no-install-recommends \
5
5
gcc-aarch64-linux-gnu libc6-dev-arm64-cross \
6
6
qemu-user-static
7
7
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
8
- PATH=$PATH:/rust/bin \
9
8
QEMU_LD_PREFIX=/usr/aarch64-linux-gnu \
10
9
RUST_TEST_THREADS=1
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ RUN apt-get install -y --no-install-recommends \
4
4
gcc libc6-dev ca-certificates \
5
5
gcc-arm-linux-gnueabi libc6-dev-armel-cross qemu-user-static
6
6
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABI_LINKER=arm-linux-gnueabi-gcc \
7
- PATH=$PATH:/rust/bin \
8
7
QEMU_LD_PREFIX=/usr/arm-linux-gnueabi \
9
8
RUST_TEST_THREADS=1
10
9
Original file line number Diff line number Diff line change @@ -4,6 +4,5 @@ RUN apt-get install -y --no-install-recommends \
4
4
gcc libc6-dev ca-certificates \
5
5
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static
6
6
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
7
- PATH=$PATH:/rust/bin \
8
7
QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf \
9
8
RUST_TEST_THREADS=1
Original file line number Diff line number Diff line change @@ -4,6 +4,5 @@ RUN apt-get install -y --no-install-recommends \
4
4
gcc libc6-dev ca-certificates \
5
5
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static
6
6
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
7
- PATH=$PATH:/rust/bin \
8
7
QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf \
9
8
RUST_TEST_THREADS=1
Original file line number Diff line number Diff line change @@ -2,4 +2,3 @@ FROM ubuntu:16.04
2
2
RUN apt-get update
3
3
RUN apt-get install -y --no-install-recommends \
4
4
gcc-multilib libc6-dev ca-certificates
5
- ENV PATH=$PATH:/rust/bin
Original file line number Diff line number Diff line change @@ -2,4 +2,3 @@ FROM ubuntu:16.04
2
2
RUN apt-get update
3
3
RUN apt-get install -y --no-install-recommends \
4
4
gcc-multilib libc6-dev ca-certificates
5
- ENV PATH=$PATH:/rust/bin
Original file line number Diff line number Diff line change @@ -7,6 +7,5 @@ RUN apt-get install -y --no-install-recommends \
7
7
binfmt-support qemu-user-static qemu-system-mips
8
8
9
9
ENV CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_LINKER=mips-linux-gnu-gcc \
10
- PATH=$PATH:/rust/bin \
11
10
QEMU_LD_PREFIX=/usr/mips-linux-gnu \
12
11
RUST_TEST_THREADS=1
Original file line number Diff line number Diff line change @@ -7,6 +7,5 @@ RUN apt-get install -y --no-install-recommends \
7
7
binfmt-support qemu-user-static
8
8
9
9
ENV CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_GNU_LINKER=mipsel-linux-gnu-gcc \
10
- PATH=$PATH:/rust/bin \
11
10
QEMU_LD_PREFIX=/usr/mipsel-linux-gnu \
12
11
RUST_TEST_THREADS=1
Original file line number Diff line number Diff line change @@ -7,6 +7,5 @@ RUN apt-get install -y --no-install-recommends \
7
7
qemu-system-ppc
8
8
9
9
ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_LINKER=powerpc-linux-gnu-gcc \
10
- PATH=$PATH:/rust/bin \
11
10
QEMU_LD_PREFIX=/usr/powerpc-linux-gnu \
12
11
RUST_TEST_THREADS=1
You can’t perform that action at this time.
0 commit comments