Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit ddc4980

Browse files
Adds rustfmt check in travis build
Signed-off-by: Albert Pastrana <[email protected]>
1 parent fb6b0c8 commit ddc4980

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ osx_image: xcode10.2
77
# We avoid using cache: cargo which blows up the cache.
88
cache:
99
- directories:
10-
- "${HOME}/.cargo"
11-
- "${HOME}/kcov/"
10+
- "${HOME}/.cargo"
11+
- "${HOME}/kcov/"
1212

1313
before_cache:
1414
- "rm -rf ${HOME}/.cargo/registry"
@@ -64,11 +64,13 @@ before_script:
6464
- cargo install cargo-audit || echo "cargo-update already installed"
6565
- cargo install cargo-travis || echo "cargo-travis already installed"
6666
- rustup component add clippy
67+
- rustup component add rustfmt
6768

6869
script:
6970
- cargo build --target $TARGET --release
7071
- cargo clippy --all-targets --all-features -- -D warnings
7172
- cargo test --target $TARGET --release
73+
- cargo fmt --all -- --check
7274
- cargo audit
7375
# Make a copy of the binary named nicely for the GitHub release, if needed.
7476
- cp target/$TARGET/release/gitkv target/$TARGET/release/gitkv-$TARGET && chmod +x target/$TARGET/release/gitkv-$TARGET

0 commit comments

Comments
 (0)