summaryrefslogtreecommitdiffstats
path: root/ci/script.sh
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-03-30 16:48:36 +0000
committerGitHub <noreply@github.com>2019-03-30 16:48:36 +0000
commitcfd025b5289bc305470a96657868c982a2b13bc2 (patch)
tree093b9105c881e28b909e031c46d2054016b643b3 /ci/script.sh
parent91aa683bcd060b2ac2f621a388a6448f564d0537 (diff)
Add rustfmt style guidev0.3.0-rc1
Diffstat (limited to 'ci/script.sh')
-rwxr-xr-xci/script.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh
index c17bbbd2..21991415 100755
--- a/ci/script.sh
+++ b/ci/script.sh
@@ -9,6 +9,12 @@ if [ "$CLIPPY" == "true" ]; then
exit
fi
+# Run clippy rustfmt
+if [ "$RUSTFMT" == "true" ]; then
+ cargo fmt -- --check
+ exit
+fi
+
# Run test in release mode if a tag is present, to produce an optimized binary
if [ -n "$TRAVIS_TAG" ]; then
cargo test --release || error=true