mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-03-17 20:28:03 +02:00
ci: check rustfmt in Travis
This commit is contained in:
parent
3644208b03
commit
c95f29e3ba
@ -47,6 +47,12 @@ main() {
|
||||
|
||||
# Run tests for ripgrep and all sub-crates.
|
||||
"$CARGO" test --target "$TARGET" --verbose --all --features 'pcre2'
|
||||
|
||||
# Check formatting.
|
||||
if [ "$TRAVIS_RUST_VERSION" = "1.41.0" ]; then
|
||||
rustup component add rustfmt
|
||||
"$CARGO" fmt --all -- --check
|
||||
fi
|
||||
}
|
||||
|
||||
main
|
||||
|
Loading…
x
Reference in New Issue
Block a user