-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.toml
82 lines (65 loc) · 1.7 KB
/
Makefile.toml
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
[config]
# Set this to `false` to run the tasks at workspace root directory and not on the members
default_to_workspace = false
# Set this to `true` to avoid clashes with core commands (e.g. `cargo make publish` vs `cargo publish`)
skip_core_tasks = true
[tasks.fmt]
command = "cargo"
args = ["fmt", "--all", "--check"]
[tasks.fmt-apply]
command = "cargo"
args = ["fmt"]
[tasks.test]
command = "cargo"
args = ["test", "--locked"]
[tasks.lint]
command = "cargo"
args = ["clippy", "--tests", "--", "-D", "warnings"]
[tasks.build]
command = "cargo"
args = ["build", "--release", "--locked", "--target", "wasm32-unknown-unknown"]
[tasks.schema]
command = "cargo"
args = ["schema"]
[tasks.optimize]
script = """
if [[ $(arch) == "arm64" ]]; then
image="cosmwasm/workspace-optimizer-arm64"
else
image="cosmwasm/workspace-optimizer"
fi
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
${image}:0.14.0
"""
[tasks.test-cover]
script = """docker run --security-opt seccomp=unconfined -v "${PWD}:/volume" xd009642/tarpaulin"""
[tasks.deploy]
script = """
ts-node ./scripts/deploy.ts
"""
[tasks.instantiate]
script = """
ts-node ./scripts/instantiate.ts
"""
[tasks.change-owner]
script = """
ts-node ./scripts/execute-change-owner.ts
"""
[tasks.change-treasury-address]
script = """
ts-node ./scripts/execute-change-treasury-address.ts
"""
[tasks.mint-nfts]
script = """
ts-node ./scripts/execute-mint-nfts.ts
"""
[tasks.append-nft-metadata]
script = """
ts-node ./scripts/execute-append-nft-metadata.ts
"""
[tasks.send-to-dao]
script = """
ts-node ./scripts/execute-send-to-dao.ts
"""