-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
48 lines (41 loc) · 1.29 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
[tasks.prepare-integration-test]
description = "Build cdylib for compiler integration test"
cwd = "../cdylib"
install_crate = "wasm-pack"
command = "wasm-pack"
args = ["build", "--target", "nodejs", "--out-dir", "../compiler-lib/tests/pkg"]
[tasks.prepare-integration-test-release]
description = "Build cdylib for compiler integration test (release)"
extend = "prepare-integration-test"
args = ["build", "--target", "nodejs", "--release", "--out-dir", "../compiler-lib/tests/pkg"]
[tasks.test]
description = "Run tests"
dependencies = [
{ name = "prepare-integration-test" },
{ name = "build-release", path = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/cdylib" }
]
command = "cargo"
args = ["test"]
[tasks.test-release]
description = "Run tests (release)"
dependencies = [
{ name = "prepare-integration-test-release" },
{ name = "build-release", path = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/cdylib" }
]
command = "cargo"
args = ["test", "--release"]
[tasks.clean-dylib]
description = "Clean rust artifacts"
command = "rm"
args = ["-rf", "./tests/pkg"]
[tasks.clean-asm]
script = '''
rm -rf ./tests/*.s
'''
[tasks.clean-rust]
description = "Clean rust artifacts"
command = "cargo"
args = ["clean"]
[tasks.clean]
description = "Clean"
dependencies = ["clean-dylib", "clean-rust", "clean-asm"]