forked from cardano-scaling/hydra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
35 lines (30 loc) · 798 Bytes
/
justfile
File metadata and controls
35 lines (30 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
alias c := check
alias t := test
alias l := lint
[private]
default:
@just --list
# run 'selfci'
ci:
selfci check --print-output
# run "nix-fast-build" to run the nix checks
check:
nix-fast-build \
--flake ".#checks.$(nix eval --impure --raw --expr builtins.currentSystem)" \
--no-link \
--skip-cached
# run cabal tests, optionally with some test selection
test PKG="all" PATTERN="/":
cabal test {{PKG}} --test-options="--match {{PATTERN}}"
# build with -Werror and strict linting flags.
lint PKG="all":
cabal build {{PKG}} \
--ghc-options="-Werror \
-Wall \
-Wcompat \
-Widentities \
-Wincomplete-record-updates \
-Wincomplete-uni-patterns \
-Wmissing-deriving-strategies \
-Wredundant-constraints \
-Wunused-packages"