@@ -2,43 +2,30 @@ language: rust
2
2
rust : stable
3
3
sudo : required
4
4
dist : trusty
5
- services :
6
- - docker
7
- install :
8
- - if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi
9
- script :
10
- - cargo build $OPT
11
- - cargo build $OPT --no-default-features
12
- - cargo generate-lockfile --manifest-path libc-test/Cargo.toml
13
- - if [[ $TRAVIS_OS_NAME = "linux" ]]; then
14
- sh ci/run-docker.sh $TARGET;
15
- else
16
- export CARGO_TARGET_DIR=`pwd`/target;
17
- sh ci/run.sh $TARGET;
18
- fi
19
- - rustc ci/style.rs && ./style src
20
- env :
21
- global :
22
- secure : " e2/3QjgRN9atOuSHp22TrYG7QVKcYUWY48Hi9b60w+r1+BhPkTseIJLte7WefRhdXtqpjjUJTooKDhnurFOeHaCT+nmBgiv+FPU893sBl4bhesY4m0vgUJVbNZcs6lTImYekWVb+aqjGdgV/XAgCw7c3kPmrZV0MzGDWL64Xaps="
5
+ services : docker
6
+
23
7
matrix :
24
8
include :
25
9
# 1.13.0 compat
26
- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
10
+ - env : TARGET=x86_64-unknown-linux-gnu
27
11
rust : 1.13.0
28
12
script : rm -f Cargo.lock && cargo build
29
- install :
13
+ install : true
30
14
31
15
# build documentation
32
- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
16
+ - env : TARGET=x86_64-unknown-linux-gnu
33
17
rust : nightly
34
18
script : sh ci/dox.sh
19
+ install : true
35
20
36
21
# stable compat
37
- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
22
+ - env : TARGET=x86_64-unknown-linux-gnu
23
+ install : true
38
24
- env : TARGET=i686-unknown-linux-gnu
39
25
- os : osx
40
- env : TARGET=x86_64-apple-darwin NO_ADD=1
26
+ env : TARGET=x86_64-apple-darwin
41
27
osx_image : xcode10
28
+ install : true
42
29
- os : osx
43
30
env : TARGET=i686-apple-darwin
44
31
osx_image : xcode10
@@ -67,20 +54,24 @@ matrix:
67
54
- env : TARGET=wasm32-unknown-emscripten
68
55
69
56
# beta
70
- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
57
+ - env : TARGET=x86_64-unknown-linux-gnu
71
58
rust : beta
59
+ install : true
72
60
- os : osx
73
- env : TARGET=x86_64-apple-darwin NO_ADD=1
61
+ env : TARGET=x86_64-apple-darwin
74
62
osx_image : xcode10
75
63
rust : beta
64
+ install : true
76
65
77
66
# nightly
78
- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
67
+ - env : TARGET=x86_64-unknown-linux-gnu
79
68
rust : nightly
69
+ install : true
80
70
- os : osx
81
- env : TARGET=x86_64-apple-darwin NO_ADD=1
71
+ env : TARGET=x86_64-apple-darwin
82
72
osx_image : xcode10
83
73
rust : nightly
74
+ install : true
84
75
# not available on stable
85
76
# without --release the build fails
86
77
# see https://github.com/rust-lang/rust/issues/45417
@@ -90,6 +81,26 @@ matrix:
90
81
# QEMU based targets that compile in an emulator
91
82
- env : TARGET=x86_64-unknown-freebsd
92
83
84
+ - name : " Shellcheck"
85
+ install : true
86
+ script :
87
+ - shellcheck --version
88
+ - shellcheck ci/*.sh
89
+
90
+ install : rustup target add $TARGET
91
+ script :
92
+ - cargo generate-lockfile --manifest-path libc-test/Cargo.toml
93
+ - if [[ $TRAVIS_OS_NAME = "linux" ]]; then
94
+ sh ci/run-docker.sh $TARGET;
95
+ else
96
+ export CARGO_TARGET_DIR=`pwd`/target;
97
+ sh ci/run.sh $TARGET;
98
+ fi
99
+ - rustc ci/style.rs && ./style src
100
+ env :
101
+ global :
102
+ secure : " e2/3QjgRN9atOuSHp22TrYG7QVKcYUWY48Hi9b60w+r1+BhPkTseIJLte7WefRhdXtqpjjUJTooKDhnurFOeHaCT+nmBgiv+FPU893sBl4bhesY4m0vgUJVbNZcs6lTImYekWVb+aqjGdgV/XAgCw7c3kPmrZV0MzGDWL64Xaps="
103
+
93
104
notifications :
94
105
email :
95
106
on_success : never
0 commit comments