-
Notifications
You must be signed in to change notification settings - Fork 6
/
makerfile.jl
55 lines (42 loc) · 956 Bytes
/
makerfile.jl
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
# These are various tasks to help with package development.
using Maker
using Glob
Maker.task("cleancov") do
for fn in glob("*/*.cov")
rm(fn)
end
end
Maker.task("coverage", "cleancov") do
cd("test") do
run(`julia --code-coverage=user --inline=no runtests.jl`)
end
# coverage = Coverage.process_folder("src")
# @show Coverage.get_summary(coverage)
end
Maker.task("tests") do
Pkg.test("Maker")
end
Maker.task("localtests") do
cd("$(Pkg.dir())/Maker/test") do
include("runtests.jl")
end
end
Maker.task("register") do
Pkg.register("Maker")
end
Maker.task("tagminor") do
Pkg.tag("Maker", :minor)
end
Maker.task("tagpatch") do
Pkg.tag("Maker", :patch)
end
Maker.task("publish") do
Pkg.publish()
end
Maker.task("pull") do
run(`git pull origin $(Pkg.Git.branch())`)
end
Maker.task("push") do
run(`git push origin $(Pkg.Git.branch())`)
end
make(ARGS)