From 12a0b8f01a495d5a9cfc091c204d933f169b7d0b Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Sat, 29 Dec 2018 18:54:09 -0500 Subject: [PATCH] .travis.yml: check rustfmt'ing in CI --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c15e351c8f..c5180698b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -82,11 +82,13 @@ before_script: export OPENSSL_LIB_DIR=$(brew --prefix openssl)/lib && export DEP_OPENSSL_INCLUDE=$(brew --prefix openssl)/include && export PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig - fi + fi && + rustup component add rustfmt script: - | if [[ -z "$IMAGE" ]]; then + cargo fmt --all -- --check && cargo build --verbose && cargo test else