diff --git a/.travis.yml b/.travis.yml index 93236a8d0c6a261372453fb86dc27458b20073a3..22d86e033bcac041383868b832ab5be69eba7827 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,7 @@ dist: trusty services: - docker install: - - curl https://static.rust-lang.org/rustup.sh | - sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot` + - if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi script: - cargo build - cargo build --no-default-features @@ -24,26 +23,26 @@ matrix: include: # 1.0.0 compat - os: linux - env: TARGET=x86_64-unknown-linux-gnu + env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 rust: 1.0.0 script: cargo build install: # build documentation - os: linux - env: TARGET=x86_64-unknown-linux-gnu + env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 rust: nightly script: sh ci/dox.sh # stable compat - os: linux - env: TARGET=x86_64-unknown-linux-gnu + env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 rust: stable - os: linux env: TARGET=i686-unknown-linux-gnu rust: stable - os: osx - env: TARGET=x86_64-apple-darwin + env: TARGET=x86_64-apple-darwin NO_ADD=1 rust: stable - os: osx env: TARGET=i686-apple-darwin @@ -101,18 +100,18 @@ matrix: # beta - os: linux - env: TARGET=x86_64-unknown-linux-gnu + env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 rust: beta - os: osx - env: TARGET=x86_64-apple-darwin + env: TARGET=x86_64-apple-darwin NO_ADD=1 rust: beta # nightly - os: linux - env: TARGET=x86_64-unknown-linux-gnu + env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 rust: nightly - os: osx - env: TARGET=x86_64-apple-darwin + env: TARGET=x86_64-apple-darwin NO_ADD=1 rust: nightly # QEMU based targets that compile in an emulator diff --git a/appveyor.yml b/appveyor.yml index a851bb87b6c3b116e1ed16ec318ac779014a1aff..403682aabfdc62810d7462a659dd777369c0f1bb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,7 +7,7 @@ environment: - TARGET: x86_64-pc-windows-msvc - TARGET: i686-pc-windows-msvc install: - - curl -sSf -o rustup-init.exe https://win.rustup.rs/ + - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - rustup-init.exe -y --default-host %TARGET% - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin