forked from provenance-io/provwasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
99 lines (81 loc) · 2.82 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.PHONY: all
all: bindings mocks contracts
.PHONY: bindings
bindings:
@make -C packages/bindings
.PHONY: mocks
mocks:
@make -C packages/mocks
.PHONY: contracts
contracts:
@make -C contracts
.PHONY: clean
clean:
@make -C packages/bindings clean
@make -C packages/mocks clean
@make -C contracts clean
.PHONY: tutorial
tutorial:
@make -C contracts/tutorial pre-optimize
.PHONY: optimize-tutorial
optimize-tutorial:
@make -C contracts/tutorial optimize
.PHONY: attrs
attrs:
@make -C contracts/attrs
.PHONY: marker
marker:
@make -C contracts/marker
.PHONY: msgfees
msgfees:
@make -C contracts/msgfees
.PHONY: name
name:
@make -C contracts/name
.PHONY: scope
scope:
@make -C contracts/scope
.PHONY: build-release-zip
build-release-zip: tutorial
zip provwasm_tutorial.zip ./contracts/tutorial/artifacts/provwasm_tutorial.wasm
PROVENANCE_TEST_VERSION = "v1.8.0"
.PHONY: test-tutorial
test-tutorial: tutorial optimize-tutorial
docker rm -f test_container || true
docker pull provenanceio/provenance-testing-action
docker create --name test_container provenanceio/provenance-testing-action --entrypoint "/scripts/tutorial_test.sh" "$(PROVENANCE_TEST_VERSION)"
docker cp ./scripts test_container:/scripts
docker cp ./contracts test_container:/go/contracts
docker start test_container
.PHONY: test-attrs
test-attrs: attrs
docker rm -f test_container || true
docker pull provenanceio/provenance-testing-action
docker create --name test_container provenanceio/provenance-testing-action --entrypoint "/scripts/attrs_test.sh" "$(PROVENANCE_TEST_VERSION)"
docker cp ./scripts test_container:/scripts
docker cp ./contracts test_container:/go/contracts
docker start test_container
.PHONY: test-marker
test-marker: marker
docker rm -f test_container || true
docker pull provenanceio/provenance-testing-action
docker create --name test_container provenanceio/provenance-testing-action --entrypoint "/scripts/marker_test.sh" "$(PROVENANCE_TEST_VERSION)"
docker cp ./scripts test_container:/scripts
docker cp ./contracts test_container:/go/contracts
docker start test_container
.PHONY: test-name
test-name: name
docker rm -f test_container || true
docker pull provenanceio/provenance-testing-action
docker create --name test_container provenanceio/provenance-testing-action --entrypoint "/scripts/name_test.sh" "$(PROVENANCE_TEST_VERSION)"
docker cp ./scripts test_container:/scripts
docker cp ./contracts test_container:/go/contracts
docker start test_container
.PHONY: test-scope
test-scope: scope
docker rm -f test_container || true
docker pull provenanceio/provenance-testing-action
docker create --name test_container provenanceio/provenance-testing-action --entrypoint "/scripts/scope_test.sh" "$(PROVENANCE_TEST_VERSION)"
docker cp ./scripts test_container:/scripts
docker cp ./contracts test_container:/go/contracts
docker start test_container