1
1
language : rust
2
- rust : stable
2
+ rust : nightly
3
3
sudo : required
4
4
dist : xenial
5
5
services : docker
6
6
7
7
matrix :
8
8
include :
9
- # 1.13.0 compat
10
- - env : TARGET=x86_64-unknown-linux-gnu
11
- rust : 1.13.0
12
- script : rm -f Cargo.lock && cargo build
13
- install : true
14
-
15
- # build documentation
16
- - env : TARGET=x86_64-unknown-linux-gnu
9
+ - name : " Documentation"
10
+ env : TARGET=x86_64-unknown-linux-gnu
17
11
rust : nightly
18
12
script : sh ci/dox.sh
19
13
install : true
14
+ - name : " Shellcheck"
15
+ install : true
16
+ script :
17
+ - shellcheck --version
18
+ - shellcheck ci/*.sh
20
19
21
- # stable compat
22
20
- env : TARGET=x86_64-unknown-linux-gnu
23
- install : true
24
21
- env : TARGET=i686-unknown-linux-gnu
22
+ - env : TARGET=x86_64-unknown-linux-gnux32 OPT="--release"
25
23
- os : osx
26
24
env : TARGET=x86_64-apple-darwin
27
25
osx_image : xcode10
28
- install : true
29
26
- os : osx
30
27
env : TARGET=i686-apple-darwin
31
28
osx_image : xcode10
@@ -52,48 +49,24 @@ matrix:
52
49
- env : TARGET=sparc64-unknown-linux-gnu
53
50
- env : TARGET=asmjs-unknown-emscripten
54
51
- env : TARGET=wasm32-unknown-emscripten
55
-
56
- # beta
57
- - env : TARGET=x86_64-unknown-linux-gnu
58
- rust : beta
59
- install : true
60
- - os : osx
61
- env : TARGET=x86_64-apple-darwin
62
- osx_image : xcode10
63
- rust : beta
64
- install : true
65
-
66
- # nightly
67
- - env : TARGET=x86_64-unknown-linux-gnu
68
- rust : nightly
69
- install : true
70
- - os : osx
71
- env : TARGET=x86_64-apple-darwin
72
- osx_image : xcode10
73
- rust : nightly
74
- install : true
75
- # not available on stable
76
- # without --release the build fails
77
- # see https://github.com/rust-lang/rust/issues/45417
78
- - env : TARGET=x86_64-unknown-linux-gnux32 OPT="--release"
79
- rust : nightly
80
-
81
52
- env : TARGET=wasm32-unknown-unknown
82
53
install : rustup target add $TARGET
83
54
script : cargo build --no-default-features --target $TARGET --release
84
55
85
- - name : " Shellcheck"
86
- install : true
87
- script :
88
- - shellcheck --version
89
- - shellcheck ci/*.sh
90
-
91
56
allow_failures :
92
57
# FIXME: https://github.com/rust-lang/libc/issues/1226
93
58
- env : TARGET=asmjs-unknown-emscripten
94
59
- env : TARGET=wasm32-unknown-emscripten
95
60
96
- install : rustup target add $TARGET
61
+ install :
62
+ - rustup install beta
63
+ - rustup install stable
64
+ - rustup install 1.13.0
65
+ - rustup target add $TARGET || true
66
+ - rustup target add $TARGET --toolchain beta || true
67
+ - rustup target add $TARGET --toolchain stable || true
68
+ - rustup target add $TARGET --toolchain 1.13.0 || true
69
+
97
70
script :
98
71
- cargo generate-lockfile --manifest-path libc-test/Cargo.toml
99
72
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
0 commit comments