2019-07-08 23:47:12 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
|
|
if rustup component add rustfmt-preview ; then
|
|
|
|
|
command -v rustfmt
|
|
|
|
|
rustfmt -V
|
|
|
|
|
cargo fmt --all -- --check
|
|
|
|
|
fi
|
|
|
|
|
|
2019-09-24 09:03:56 -05:00
|
|
|
# if rustup component add clippy-preview ; then
|
|
|
|
|
# cargo clippy -V
|
|
|
|
|
# cargo clippy --all -- -D clippy::pedantic
|
|
|
|
|
# fi
|
2019-07-08 23:47:12 +02:00
|
|
|
|
|
|
|
|
if shellcheck --version ; then
|
|
|
|
|
shellcheck -e SC2103 ci/*.sh
|
|
|
|
|
else
|
|
|
|
|
echo "shellcheck not found"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|