-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.maple
66 lines (56 loc) · 1.27 KB
/
build.maple
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
plugins = [ 'config/plugins/v' ]
config:v_build_filename = 'clockwork'
task:test.example = {
help = 'Tests the example project'
category = 'test'
work_dir = 'example'
run = '${v} run .. run "Hello, World!"'
}
task:test.echo = {
help = 'Tests a simple shell command'
category = 'test'
run = 'echo "Hello, World!"'
}
task:test.api = {
help = 'Tests Clockwork\'s API'
category = 'test'
work_dir = 'tests'
run = '${v} test .'
}
task:test = {
help = 'Runs all tests'
category = 'test'
depends = [
'test.api',
'test.echo',
'test.example'
]
}
task:symlink = {
help = 'Makes a Clockwork symlink in /usr/bin'
category = 'installation'
run = '${v} run ./cmd/symlink/'
}
task:install = {
help = 'Build and installs Clockwork and its default configs'
category = 'installation'
depends = [ 'build.prod', 'symlink' ]
}
task:bump = {
help = 'Bumps the Clockwork version'
category = 'misc'
run = '${v} bump --${args} v.mod api/api.v'
}
task:doc = {
help = 'Generates HTML documentation for the Clockwork API'
category = 'docs'
run = [
'${v} doc -f html -o doc/ -readme ./api',
'mv -v doc/api.html doc/index.html'
]
}
task:git.update_submodules = {
help = 'Updates each submodule to its latest commit'
category = 'git'
run = 'git submodule update --recursive --remote'
}