diff options
| author | Steven Fackler <[email protected]> | 2017-07-16 10:02:02 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2017-07-16 14:15:09 -0700 |
| commit | 3a7ca9c2ff607b65e0db2ea4bb167c1304da86e8 (patch) | |
| tree | 7665b2f07eec21f461b6e55456bc8f04aa8a7858 /test/add_target.sh | |
| parent | Tell docs.rs to build with all features (diff) | |
| download | rust-openssl-3a7ca9c2ff607b65e0db2ea4bb167c1304da86e8.tar.xz rust-openssl-3a7ca9c2ff607b65e0db2ea4bb167c1304da86e8.zip | |
Switch over Linux tests to CircleCI
Diffstat (limited to 'test/add_target.sh')
| -rwxr-xr-x | test/add_target.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/add_target.sh b/test/add_target.sh new file mode 100755 index 00000000..1f74b4cf --- /dev/null +++ b/test/add_target.sh @@ -0,0 +1,32 @@ +#!/bin/bash +set -e + +case "${TARGET}" in +"x86_64-unknown-linux-gnu") + exit 0 + ;; +"i686-unknown-linux-gnu") + apt-get install -y --no-install-recommends gcc-multilib + ;; +"arm-unknown-linux-gnueabihf") + echo "deb http://emdebian.org/tools/debian/ jessie main" \ + > /etc/apt/sources.list.d/crosstools.list + curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add - + dpkg --add-architecture armhf + apt-get update + apt-get install -y --no-install-recommends \ + gcc-arm-linux-gnueabihf \ + libc6-dev:armhf + ;; +esac + +OUT=/tmp/std.tar.gz +curl -o ${OUT} https://static.rust-lang.org/dist/rust-std-${RUST_VERSION}-${TARGET}.tar.gz + +WORKDIR=/tmp/std +mkdir -p ${WORKDIR} +cd ${WORKDIR} + +tar --strip-components=1 -xzf ${OUT} + +./install.sh |