Skip to content

Commit 16718ab

Browse files
committed
Auto merge of rust-lang#553 - alexcrichton:fix-ci, r=alexcrichton
Get CI working again A few changes have necessitated some updates on our end
2 parents 863fb88 + 9a55bc1 commit 16718ab

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.travis.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ dist: trusty
44
services:
55
- docker
66
install:
7-
- curl https://static.rust-lang.org/rustup.sh |
8-
sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot`
7+
- if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi
98
script:
109
- cargo build
1110
- cargo build --no-default-features
@@ -24,26 +23,26 @@ matrix:
2423
include:
2524
# 1.0.0 compat
2625
- os: linux
27-
env: TARGET=x86_64-unknown-linux-gnu
26+
env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
2827
rust: 1.0.0
2928
script: cargo build
3029
install:
3130

3231
# build documentation
3332
- os: linux
34-
env: TARGET=x86_64-unknown-linux-gnu
33+
env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
3534
rust: nightly
3635
script: sh ci/dox.sh
3736

3837
# stable compat
3938
- os: linux
40-
env: TARGET=x86_64-unknown-linux-gnu
39+
env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
4140
rust: stable
4241
- os: linux
4342
env: TARGET=i686-unknown-linux-gnu
4443
rust: stable
4544
- os: osx
46-
env: TARGET=x86_64-apple-darwin
45+
env: TARGET=x86_64-apple-darwin NO_ADD=1
4746
rust: stable
4847
- os: osx
4948
env: TARGET=i686-apple-darwin
@@ -101,18 +100,18 @@ matrix:
101100

102101
# beta
103102
- os: linux
104-
env: TARGET=x86_64-unknown-linux-gnu
103+
env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
105104
rust: beta
106105
- os: osx
107-
env: TARGET=x86_64-apple-darwin
106+
env: TARGET=x86_64-apple-darwin NO_ADD=1
108107
rust: beta
109108

110109
# nightly
111110
- os: linux
112-
env: TARGET=x86_64-unknown-linux-gnu
111+
env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
113112
rust: nightly
114113
- os: osx
115-
env: TARGET=x86_64-apple-darwin
114+
env: TARGET=x86_64-apple-darwin NO_ADD=1
116115
rust: nightly
117116

118117
# QEMU based targets that compile in an emulator

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environment:
77
- TARGET: x86_64-pc-windows-msvc
88
- TARGET: i686-pc-windows-msvc
99
install:
10-
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
10+
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
1111
- rustup-init.exe -y --default-host %TARGET%
1212
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
1313
- if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin

0 commit comments

Comments
 (0)