2021-09-23 22:59:28 +03:00
|
|
|
#!/usr/bin/env bash
|
2021-02-27 19:15:01 +03:00
|
|
|
# nix-shell loads the devshell making rust and all the formatters available.
|
2021-09-23 22:59:28 +03:00
|
|
|
set -exuo pipefail
|
2021-02-15 23:36:19 +03:00
|
|
|
|
2021-02-27 19:15:01 +03:00
|
|
|
# Quick sanity check
|
|
|
|
cargo test
|
2021-02-15 23:36:19 +03:00
|
|
|
|
2021-02-27 19:15:01 +03:00
|
|
|
# Check that no code needs reformatting. Acts as a minimal integration test.
|
|
|
|
cargo run -- --fail-on-change
|
2021-02-15 23:36:19 +03:00
|
|
|
|
2021-02-27 19:15:01 +03:00
|
|
|
# Build the nix package
|
2021-09-23 22:59:28 +03:00
|
|
|
nix-build --no-out-link
|
2022-09-21 22:30:46 +03:00
|
|
|
|
|
|
|
# Check nix fmt
|
|
|
|
nix fmt
|