Skip to content

Commit 5e3c954

Browse files
committed
Auto merge of #322 - posborne:travis-mixed-sudo-environment, r=kamalmarhubi
travis: only require sudo on docker/i686 builds Signed-off-by: Paul Osborne <osbpau@gmail.com>
2 parents 2a5360b + a6967d6 commit 5e3c954

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

.travis.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
language: rust
2-
sudo: required
2+
sudo: false
33
dist: trusty
44
services:
55
- docker
66

77
rust:
88
- 1.1.0 # Oldest supported version
9+
- 1.2.0
10+
- 1.3.0
11+
- 1.4.0
12+
- 1.5.0
13+
- 1.6.0
914
- stable
1015
- beta
1116
- nightly
@@ -15,36 +20,54 @@ script:
1520

1621
env:
1722
- ARCH=x86_64
23+
- ARCH=i686
1824

1925
os:
2026
- linux
21-
- osx
27+
28+
addons:
29+
apt:
30+
packages:
31+
- gcc-multilib
2232

2333
# Failures on nightly shouldn't fail the overall build.
2434
matrix:
2535
fast_finish: true
2636
include:
27-
- os: linux
28-
env: ARCH=i686
37+
# 32-bit and 64-bit OSX builds on oldest/stable
38+
- os: osx
39+
env: ARCH=x86_64
2940
rust: stable
3041
- os: osx
3142
env: ARCH=i686
3243
rust: stable
44+
- os: osx
45+
env: ARCH=x86_64
46+
rust: 1.1.0
47+
- os: osx
48+
env: ARCH=i686
49+
rust: 1.1.0
50+
# Docker builds for other targets
3351
- os: linux
3452
env: TARGET=aarch64-unknown-linux-gnu DOCKER_IMAGE=posborne/rust-cross:arm
3553
rust: 1.7.0
54+
sudo: true
3655
- os: linux
3756
env: TARGET=arm-unknown-linux-gnueabihf DOCKER_IMAGE=posborne/rust-cross:arm
3857
rust: 1.7.0
58+
sudo: true
3959
- os: linux
4060
env: TARGET=mips-unknown-linux-gnu DOCKER_IMAGE=posborne/rust-cross:mips
4161
rust: 1.7.0
62+
sudo: true
4263
- os: linux
4364
env: TARGET=mipsel-unknwon-linux-gnu DOCKER_IMAGE=posborne/rust-cross:mips
4465
rust: 1.7.0
66+
sudo: true
4567
- os: linux
4668
env: TARGET=arm-linux-androideabi DOCKER_IMAGE=posborne/rust-cross:android
4769
rust: 1.7.0
70+
sudo: true
4871
allow_failures:
4972
- rust: nightly
5073
- env: TARGET=aarch64-unknown-linux-gnu DOCKER_IMAGE=posborne/rust-cross:arm

ci/run-travis.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ if [ "$TARGET" = "" ]; then
3030
TARGET=$HOST
3131
fi
3232

33-
if [ "$TARGET" = "i686-unknown-linux-gnu" ]; then
34-
sudo apt-get -y update
35-
sudo apt-get install -y gcc-multilib
36-
fi
37-
3833
if [ "$DOCKER_IMAGE" = "" ]; then
3934
export RUST_TEST_THREADS=1
4035
curl -sSL "https://raw.githubusercontent.com/carllerche/travis-rust-matrix/master/test" | bash

0 commit comments

Comments
 (0)