-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (33 loc) · 788 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
ghcid:
ghcid \
--command "stack ghci \
--test \
--bench \
--main-is twenty48:exe:twenty48"
ghcid-yesod:
ghcid \
--command "stack ghci twenty48 \
--flag twenty48:dev \
--test --bench \
--main-is :twenty48 \
--ghci-options=-fobject-code" \
--test DevelMain.update \
--warnings \
--reload static \
--reload templates
ghcid-test:
ghcid \
--command "stack ghci \
--test \
--bench \
--main-is :test \
--ghci-options=-fobject-code" \
--test main \
--warnings
TAG = latest
docker-build:
docker build -t "dfacastro/base" "./docker/base" && \
stack --stack-yaml "./stack-docker.yaml" image container && \
docker image tag dfacastro/2048-twenty48:latest dfacastro/2048-twenty48:$(TAG)
docker-publish:
docker push dfacastro/2048-twenty48