forked from freizl/hoauth2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (34 loc) · 760 Bytes
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
default: build
clean:
cabal v2-clean
create-keys:
test -e example/Keys.hs || cp example/Keys.hs.sample example/Keys.hs
build:
cabal v2-build --flag=test
## install ghcid globally: `cabal install ghcid`
watch:
ghcid --command="cabal v2-repl ."
watch-demo:
ghcid --command="cabal v2-repl --flag=test demo-server"
build-demo:
cabal v2-build --flag=test demo-server
repl-demo:
cabal v2-repl --flag=test demo-server
start-demo:
cabal v2-exec --flag=test demo-server
rebuild: clean build
hlint:
hlint . --report
doc: build
cabal v2-haddock
dist: rebuild
cabal v2-sdist
cabal2nix:
cabal2nix -ftest . > hoauth2.nix
####################
### CI
####################
ci-build: create-keys
nix-build
ci-lint:
nix-shell --command 'make hlint'