@@ -11,11 +11,11 @@ matrix:
11
11
- os : linux
12
12
env : TARGET=i686-unknown-linux-gnu
13
13
DOCKER=alexcrichton/rust-slave-dist:2015-10-20b
14
+ if : branch != master
14
15
- os : linux
15
16
env : TARGET=x86_64-unknown-linux-gnu
16
17
DOCKER=alexcrichton/rust-slave-dist:2015-10-20b
17
18
NO_ADD=1
18
- ALLOW_PR=1
19
19
20
20
# Cross builds happen in the `rust-slave-linux-cross` image to ensure that
21
21
# we use the right cross compilers for these targets. That image should
@@ -24,90 +24,111 @@ matrix:
24
24
env : TARGET=arm-unknown-linux-gnueabi
25
25
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
26
26
SKIP_TESTS=1
27
+ if : branch != master
27
28
- os : linux
28
29
env : TARGET=arm-unknown-linux-gnueabihf
29
30
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
30
31
SKIP_TESTS=1
32
+ if : branch != master
31
33
- os : linux
32
34
env : TARGET=armv7-unknown-linux-gnueabihf
33
35
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
34
36
SKIP_TESTS=1
37
+ if : branch != master
35
38
- os : linux
36
39
env : TARGET=aarch64-unknown-linux-gnu
37
40
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
38
41
SKIP_TESTS=1
42
+ if : branch != master
39
43
- os : linux
40
44
env : TARGET=x86_64-unknown-freebsd
41
45
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
42
46
SKIP_TESTS=1
47
+ if : branch != master
43
48
- os : linux
44
49
env : TARGET=x86_64-unknown-netbsd
45
50
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
46
51
SKIP_TESTS=1
52
+ if : branch != master
47
53
- os : linux
48
54
env : TARGET=powerpc-unknown-linux-gnu
49
55
DOCKER=powerpc-unknown-linux-gnu
50
56
SKIP_TESTS=1
57
+ if : branch != master
51
58
- os : linux
52
59
env : TARGET=powerpc64-unknown-linux-gnu
53
60
DOCKER=powerpc64-unknown-linux-gnu
54
61
SKIP_TESTS=1
62
+ if : branch != master
55
63
- os : linux
56
64
env : TARGET=powerpc64le-unknown-linux-gnu
57
65
DOCKER=powerpc64le-unknown-linux-gnu
58
66
SKIP_TESTS=1
67
+ if : branch != master
59
68
- os : linux
60
69
env : TARGET=mips-unknown-linux-gnu
61
70
DOCKER=mips-unknown-linux-gnu
62
71
SKIP_TESTS=1
72
+ if : branch != master
63
73
- os : linux
64
74
env : TARGET=mipsel-unknown-linux-gnu
65
75
DOCKER=mipsel-unknown-linux-gnu
66
76
SKIP_TESTS=1
77
+ if : branch != master
67
78
- os : linux
68
79
env : TARGET=mips64-unknown-linux-gnuabi64
69
80
DOCKER=mips64-unknown-linux-gnuabi64
70
81
SKIP_TESTS=1
82
+ if : branch != master
71
83
- os : linux
72
84
env : TARGET=mips64el-unknown-linux-gnuabi64
73
85
DOCKER=mips64el-unknown-linux-gnuabi64
74
86
SKIP_TESTS=1
87
+ if : branch != master
75
88
- os : linux
76
89
env : TARGET=s390x-unknown-linux-gnu
77
90
DOCKER=s390x-unknown-linux-gnu
78
91
SKIP_TESTS=1
92
+ if : branch != master
79
93
80
94
# Android use a local docker image
81
95
- os : linux
82
96
env : TARGET=arm-linux-androideabi
83
97
DOCKER=android
84
98
SKIP_TESTS=1
99
+ if : branch != master
85
100
- os : linux
86
101
env : TARGET=armv7-linux-androideabi
87
102
DOCKER=android
88
103
SKIP_TESTS=1
104
+ if : branch != master
89
105
- os : linux
90
106
env : TARGET=aarch64-linux-android
91
107
DOCKER=android
92
108
SKIP_TESTS=1
109
+ if : branch != master
93
110
- os : linux
94
111
env : TARGET=i686-linux-android
95
112
DOCKER=android
96
113
SKIP_TESTS=1
114
+ if : branch != master
97
115
- os : linux
98
116
env : TARGET=x86_64-linux-android
99
117
DOCKER=android
100
118
SKIP_TESTS=1
119
+ if : branch != master
101
120
102
121
# On OSX we want to target 10.7 so we ensure that the appropriate
103
122
# environment variable is set to tell the linker what we want.
104
123
- os : osx
105
124
env : TARGET=i686-apple-darwin
106
125
MACOSX_DEPLOYMENT_TARGET=10.7
126
+ if : branch != master
107
127
- os : osx
108
128
env : TARGET=x86_64-apple-darwin
109
129
MACOSX_DEPLOYMENT_TARGET=10.7
110
130
NO_ADD=1
131
+ if : branch != master
111
132
112
133
cache :
113
134
# We're going to download things we don't necessarily want to cache into the `target` directory, so
@@ -116,29 +137,17 @@ cache:
116
137
- target/$TARGET/openssl/openssl-install
117
138
- target/release/deps
118
139
119
- branches :
120
- only :
121
- - master
122
- - stable
123
- - auto
124
-
125
140
install :
126
141
- if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi
127
142
128
143
script :
129
144
- mkdir -p target/$TARGET;
130
145
- >
131
- if [[ "$TRAVIS_PULL_REQUEST" != "false" && "$ALLOW_PR" != "1" ]]; then
132
- echo 'skipping PR build';
133
- elif [[ "$TRAVIS_BRANCH" == "master" && "$ALLOW_PR" != "1" ]]; then
134
- echo 'skipping master build';
135
- else
136
- if [ ! -z "$DOCKER" ]; then
137
- sh ci/build-run-docker.sh "$DOCKER" "$TARGET" "$SKIP_TESTS";
138
- else
139
- PATH=$HOME/rust/bin:$PATH sh ci/run.sh;
140
- fi
141
- fi
146
+ if [ ! -z "$DOCKER" ]; then
147
+ sh ci/build-run-docker.sh "$DOCKER" "$TARGET" "$SKIP_TESTS";
148
+ else
149
+ PATH=$HOME/rust/bin:$PATH sh ci/run.sh;
150
+ fi
142
151
143
152
before_deploy :
144
153
- bash ci/prepare-deploy-travis.sh
0 commit comments