-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile-common.mk
More file actions
48 lines (34 loc) · 1.22 KB
/
Makefile-common.mk
File metadata and controls
48 lines (34 loc) · 1.22 KB
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
setup-hooks:
@cd .git/hooks; ln -s -f ../../scripts/git-hooks/* ./
.git/hooks/pre-commit: setup
build: .git/hooks/pre-commit
@sui move build
publish:
@sui client publish --skip-dependency-verification --gas-budget 100000000
# lint changed files
lint:
@git diff --name-only | grep -E '\.md$$' | xargs -r markdownlint-cli2
@sui move build --lint
lint-all:
@markdownlint-cli2 **.md
@sui move build --lint
lint-fix-all:
@markdownlint-cli2 --fix **.md
@echo "Sui move lint will be fixed by manual"
@prettier-move --w .
.PHONY: build setup
.PHONY: lint-git lint lint-all lint-fix-all
###############################################################################
## Tests ##
###############################################################################
test:
@sui move test
test-coverage:
echo TODO
# sui move test --coverage
# sui move coverage
.PHONY: test test-coverage
###############################################################################
## Infrastructure ##
###############################################################################
# To setup bitcoin, use Native Relayer.