@@ -18,6 +18,7 @@ build: &BUILD
1818 - . $HOME/.cargo/env || true
1919 - $TOOL +$TOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets
2020 - $TOOL +$TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
21+ - $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET -- -D warnings
2122
2223# Tests that do require executing the binaries
2324test : &TEST
3940 setup_script :
4041 - fetch https://sh.rustup.rs -o rustup.sh
4142 - sh rustup.sh -y --profile=minimal --default-toolchain $TOOLCHAIN
42- - $HOME/.cargo/bin/rustup target add i686-unknown-freebsd
43+ - . $HOME/.cargo/env
44+ - rustup target add i686-unknown-freebsd
45+ - rustup component add --toolchain $TOOLCHAIN clippy
4346 << : *TEST
4447 i386_test_script :
4548 - . $HOME/.cargo/env
6063 - curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
6164 - sh rustup.sh -y --profile=minimal --default-toolchain $TOOLCHAIN
6265 - . $HOME/.cargo/env
66+ - rustup component add --toolchain $TOOLCHAIN clippy
6367 << : *TEST
6468 before_cache_script : rm -rf $CARGO_HOME/registry/index
6569
@@ -142,6 +146,7 @@ task:
142146 TARGET : x86_64-unknown-linux-musl
143147 setup_script :
144148 - rustup target add $TARGET
149+ - rustup component add clippy
145150 << : *TEST
146151 before_cache_script : rm -rf $CARGO_HOME/registry/index
147152
@@ -224,6 +229,7 @@ task:
224229 setup_script :
225230 - rustup target add $TARGET
226231 - rustup toolchain install $TOOLCHAIN --profile minimal --target $TARGET
232+ - rustup component add --toolchain $TOOLCHAIN clippy
227233 << : *BUILD
228234 before_cache_script : rm -rf $CARGO_HOME/registry/index
229235
0 commit comments