-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
66 lines (53 loc) · 1.25 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
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[tasks.linux_apt_get_update]
command = "sudo"
args = ["apt-get", "update"]
[tasks.linux_install_deps]
command = "sudo"
args = ["apt-get", "install", "-y", "liberfa-dev"]
dependencies = ["linux_apt_get_update"]
[tasks.mac_install_deps]
script = """
wget https://github.com/MWATelescope/homebrew-tap/releases/download/v2021.07.20.10.17/erfa--2.0.0.catalina.bottle.1.tar.gz -O erfa--2.0.0.catalina.bottle.1.tar.gz
brew install -f erfa--2.0.0.catalina.bottle.1.tar.gz
"""
[tasks.install_deps]
linux_alias = "linux_install_deps"
mac_alias = "mac_install_deps"
[tasks.check]
command = "cargo"
args = ["check"]
[tasks.format_fix]
command = "cargo"
args = ["fmt", "--", "--emit=files"]
install_crate = "rustfmt"
[tasks.format_check]
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
install_crate = "rustfmt"
[tasks.clippy]
command = "cargo"
args = ["clippy", "--", "-D", "warnings"]
install_crate = "clippy"
[tasks.clean]
command = "cargo"
args = ["clean"]
[tasks.build_clean]
command = "cargo"
args = ["build"]
dependencies = ["clean"]
[tasks.test]
command = "cargo"
args = ["test"]
[tasks.ci]
dependencies = [
"check",
"format_check",
"clippy",
]
[tasks.pre_commit]
dependencies = [
"format_fix",
"test",
]