@@ -4,8 +4,7 @@ dist: trusty
4
4
services :
5
5
- docker
6
6
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
9
8
script :
10
9
- cargo build
11
10
- cargo build --no-default-features
@@ -24,26 +23,26 @@ matrix:
24
23
include :
25
24
# 1.0.0 compat
26
25
- os : linux
27
- env : TARGET=x86_64-unknown-linux-gnu
26
+ env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
28
27
rust : 1.0.0
29
28
script : cargo build
30
29
install :
31
30
32
31
# build documentation
33
32
- os : linux
34
- env : TARGET=x86_64-unknown-linux-gnu
33
+ env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
35
34
rust : nightly
36
35
script : sh ci/dox.sh
37
36
38
37
# stable compat
39
38
- os : linux
40
- env : TARGET=x86_64-unknown-linux-gnu
39
+ env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
41
40
rust : stable
42
41
- os : linux
43
42
env : TARGET=i686-unknown-linux-gnu
44
43
rust : stable
45
44
- os : osx
46
- env : TARGET=x86_64-apple-darwin
45
+ env : TARGET=x86_64-apple-darwin NO_ADD=1
47
46
rust : stable
48
47
- os : osx
49
48
env : TARGET=i686-apple-darwin
@@ -101,18 +100,18 @@ matrix:
101
100
102
101
# beta
103
102
- os : linux
104
- env : TARGET=x86_64-unknown-linux-gnu
103
+ env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
105
104
rust : beta
106
105
- os : osx
107
- env : TARGET=x86_64-apple-darwin
106
+ env : TARGET=x86_64-apple-darwin NO_ADD=1
108
107
rust : beta
109
108
110
109
# nightly
111
110
- os : linux
112
- env : TARGET=x86_64-unknown-linux-gnu
111
+ env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
113
112
rust : nightly
114
113
- os : osx
115
- env : TARGET=x86_64-apple-darwin
114
+ env : TARGET=x86_64-apple-darwin NO_ADD=1
116
115
rust : nightly
117
116
118
117
# QEMU based targets that compile in an emulator
0 commit comments