forked from ethereum-oasis-op/baseline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (48 loc) · 1.16 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
# Makefile
# absolute path to the construction site
radish34=./radish34
# over time, as the radish34 use-case is abstracted/generalized into
# the baseline protocol, the pushd/popd hacks will fade away...
.PHONY: build clean contracts deploy-contracts npm-install start stop reset test zk-circuits
default: build
build: npm-install contracts
pushd ${radish34} && \
docker-compose build && \
npm run setup && \
popd
clean: stop
$(radish34)/../bin/clean_npm.sh
contracts:
pushd ${radish34} && \
npm run build:contracts && \
popd
deploy-contracts:
pushd ${radish34} && \
npm run deploy && \
popd
npm-install:
pushd ${radish34} && \
npm ci && npm run postinstall && \
popd
start:
pushd ${radish34} && \
docker-compose up -d && \
popd
stop:
pushd ${radish34} && \
docker-compose down && \
popd
reset:
pushd ${radish34} && \
docker-compose down && \
docker container prune -f && \
docker volume rm radish34_mongo-buyer radish34_mongo-supplier1 radish34_mongo-supplier2 radish34_mongo-merkle-tree-volume radish34_chaindata && \
popd
test:
pushd ${radish34} && \
npm run test && \
popd
zk-circuits:
pushd ${radish34} && \
npm run setup && \
popd