Add cargo fmt to travis build config

This commit is contained in:
Atul Bhosale committed 2020-03-18 23:29:36 +05:30
1 parent 119dec5068
commit 0ed3d90f19
1 file changed
+5
+5
View File
@@ -4,3 +4,8 @@ rust:
- stable - stable
- beta - beta
- nightly - nightly
script:
- if [[ "$TRAVIS_RUST_VERSION" == *stable* ]]; then rustup component add rustfmt; cargo fmt --version; cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt --version))"; false); fi
- cargo build -v
- cargo test -v