mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
16 lines
331 B
Bash
Executable File
16 lines
331 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# nix-shell loads the devshell making rust and all the formatters available.
|
|
set -exuo pipefail
|
|
|
|
# Quick sanity check
|
|
cargo test
|
|
|
|
# Check that no code needs reformatting. Acts as a minimal integration test.
|
|
cargo run -- --fail-on-change
|
|
|
|
# Build the nix package
|
|
nix-build --no-out-link
|
|
|
|
# Check nix fmt
|
|
nix fmt
|