@@ -73,15 +73,14 @@ matrix:
7373 if : branch != master
7474 env : MACOSX_DEPLOYMENT_TARGET=10.7 TARGET=i686-apple-darwin
7575
76- - name : clippy/rustup-init.sh
76+ - name : rustfmt/ clippy/rustup-init.sh/shellcheck
7777 language : minimal
7878 install :
7979 - |
8080 sh ./rustup-init.sh --default-toolchain=beta -y;
8181 . "$HOME"/.cargo/env;
82- rustup component add clippy;
82+ rustup component add rustfmt clippy;
8383 script :
84- - cargo clippy --all --all-targets
8584 - |
8685 docker run \
8786 --volume "$TRAVIS_BUILD_DIR":/checkout:ro \
@@ -90,6 +89,11 @@ matrix:
9089 -it \
9190 centos:6 \
9291 sh ./ci/raw_init.sh;
92+ - shellcheck -s dash -- rustup-init.sh;
93+ - git ls-files -- '*.sh' | xargs shellcheck -s dash -e SC1090;
94+ - git ls-files -- '*.bash' | xargs shellcheck -s bash -e SC1090;
95+ - cargo fmt --all -- --check;
96+ - cargo clippy --all --all-targets
9397 before_deploy :
9498 deploy :
9599
@@ -120,23 +124,13 @@ script:
120124 esac
121125 - |
122126 if [ -n "$DOCKER" ]; then
123- sh ci/build-run-docker.sh "$DOCKER" "$TARGET" "$SKIP_TESTS";
127+ bash ci/build-run-docker.bash "$DOCKER" "$TARGET" "$SKIP_TESTS";
124128 else
125- sh ci/run.sh;
126- fi
127-
128- # Check the formatting last because test failures are more interesting to have
129- # discovered for contributors lacking some platform access for testing beforehand
130- - |
131- if [ "${TARGET}" = x86_64-unknown-linux-gnu ]; then
132- shellcheck -s dash -e SC1090 -- rustup-init.sh ci/*.sh;
133- rustup component add rustfmt;
134- rustfmt -vV;
135- cargo fmt --all -- --check;
129+ bash ci/run.bash;
136130 fi
137131
138132before_deploy :
139- - sh ci/prepare-deploy-travis.sh
133+ - bash ci/prepare-deploy-travis.bash
140134
141135deploy :
142136 - provider : s3
0 commit comments