forked from skycoin/skycoin-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 1004 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
.DEFAULT_GOAL := help
.PHONY: lint check help
build:
npm run build
lint: ## runs lint
npm run lint
unit-test: ## runs unit tests
npm run test
cipher-test:
npm run cipher-test
run-docker: ## runs docker container
docker volume create skycoin-data
docker volume create skycoin-wallet
chmod 777 $(PWD)/e2e/test-fixtures/blockchain-180.db
docker run -d --rm \
-v skycoin-data:/data \
-v skycoin-wallet:/wallet \
-v $(PWD)/e2e/:/project-root \
--name skycoin-backend \
-p 6000:6000 \
-p 6420:6420 \
skycoin/skycoin:develop \
-web-interface-addr 172.17.0.2 \
-db-path=project-root/test-fixtures/blockchain-180.db \
-disable-networking
stop-docker: ## stops docker container
docker stop skycoin-backend
e2e-test: ## runs e2e tests
npm run e2e-docker
check: run-docker lint unit-test e2e-test stop-docker ## runs linter, unit tests, e2e tests
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'