treefmt/ci.sh
zimbatm 59f08aaf3b
ci: introduce ./ci.sh
Make it easy to test CI as a developer. If ./ci.sh succeeds, it should
work on CI.
2021-02-15 21:36:21 +01:00

11 lines
174 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
set -x
nix-shell --pure --run "cargo build"
nix-shell --pure --run "cargo test"
nix-build -A defaultNix.defaultPackage.x86_64-linux