mirror of
https://github.com/numtide/treefmt.git
synced 2024-10-26 17:30:03 +03:00
10e55961d6
replace the devshell to make it work on macOS
13 lines
306 B
Bash
Executable File
13 lines
306 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
|