rust/library/stdarch/ci/style.sh
Alex Crichton d7f3c0bbb3
Migrate CI to GitHub Actions (#813)
* Migrate CI to GitHub Actions

This involves less secret and user management than azure pipelines, has
more concurrency by default for repos, and in general has a bit more
modern syntax!

* Disable clippy on CI for now

Looks like it's got quite a few errors
2019-09-24 09:03:56 -05:00

23 lines
388 B
Bash
Executable File

#!/usr/bin/env sh
set -ex
if rustup component add rustfmt-preview ; then
command -v rustfmt
rustfmt -V
cargo fmt --all -- --check
fi
# if rustup component add clippy-preview ; then
# cargo clippy -V
# cargo clippy --all -- -D clippy::pedantic
# fi
if shellcheck --version ; then
shellcheck -e SC2103 ci/*.sh
else
echo "shellcheck not found"
exit 1
fi