@@ -2,43 +2,30 @@ language: rust
22rust : stable
33sudo : required
44dist : 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+
237matrix :
248 include :
259 # 1.13.0 compat
26- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
10+ - env : TARGET=x86_64-unknown-linux-gnu
2711 rust : 1.13.0
2812 script : rm -f Cargo.lock && cargo build
29- install :
13+ install : true
3014
3115 # build documentation
32- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
16+ - env : TARGET=x86_64-unknown-linux-gnu
3317 rust : nightly
3418 script : sh ci/dox.sh
19+ install : true
3520
3621 # stable compat
37- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
22+ - env : TARGET=x86_64-unknown-linux-gnu
23+ install : true
3824 - env : TARGET=i686-unknown-linux-gnu
3925 - os : osx
40- env : TARGET=x86_64-apple-darwin NO_ADD=1
26+ env : TARGET=x86_64-apple-darwin
4127 osx_image : xcode10
28+ install : true
4229 - os : osx
4330 env : TARGET=i686-apple-darwin
4431 osx_image : xcode10
@@ -67,20 +54,24 @@ matrix:
6754 - env : TARGET=wasm32-unknown-emscripten
6855
6956 # beta
70- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
57+ - env : TARGET=x86_64-unknown-linux-gnu
7158 rust : beta
59+ install : true
7260 - os : osx
73- env : TARGET=x86_64-apple-darwin NO_ADD=1
61+ env : TARGET=x86_64-apple-darwin
7462 osx_image : xcode10
7563 rust : beta
64+ install : true
7665
7766 # nightly
78- - env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
67+ - env : TARGET=x86_64-unknown-linux-gnu
7968 rust : nightly
69+ install : true
8070 - os : osx
81- env : TARGET=x86_64-apple-darwin NO_ADD=1
71+ env : TARGET=x86_64-apple-darwin
8272 osx_image : xcode10
8373 rust : nightly
74+ install : true
8475 # not available on stable
8576 # without --release the build fails
8677 # see https://github.com/rust-lang/rust/issues/45417
@@ -90,6 +81,26 @@ matrix:
9081 # QEMU based targets that compile in an emulator
9182 - env : TARGET=x86_64-unknown-freebsd
9283
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+
93104notifications :
94105 email :
95106 on_success : never
0 commit comments