-
Notifications
You must be signed in to change notification settings - Fork 2
/
make.toml
115 lines (83 loc) · 1.97 KB
/
make.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[tasks.clean]
description = "Clean proyect"
command = "cargo"
args = ["clean"]
[tasks.build]
command = "cargo"
args = ["build"]
[tasks.test]
command = "cargo"
args = ["test"]
[tasks.install]
script = [
"true"
]
[tasks.devtest]
script = [
"cargo test -- --nocapture"
]
[tasks.audit]
command = "cargo"
args = ["audit"]
[tasks.run]
command = "cargo"
args = ["run"]
[tasks.docgenerate]
command = "cargo"
args = ["doc","-p","cloudbanking", "--no-deps"]
[tasks.doc]
script = [
"echo $PWD",
"cp -rf target/doc/cloudbanking docs/documentation/cloudbanking",
"cp target/doc/*.woff docs/documentation/",
"cp target/doc/settings.html docs/documentation/",
"cp target/doc/*.css docs/documentation/",
"cp target/doc/*.ico docs/documentation/",
"cp target/doc/*.png docs/documentation/",
"cp target/doc/*.js docs/documentation/",
"cp target/doc/*.svg docs/documentation/",
]
dependencies = ["docgenerate"]
[tasks.start]
command = "cargo"
args = ["run"]
[tasks.watch]
command = "cargo"
args = ["watch"]
[tasks.certificate]
script = [
"openssl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -out cert.pem -days 365 -subj '/CN=localhost'"
]
[task.detectports]
script = [
"lsof -i tcp:3030"
]
[tasks.dirtree]
script = [
"find *.yml Gemfile README.md Dockerfile cc.yaml make.toml LICENSE _config.yml src install makefile .github/workflows .gitignore .travis.yml -type f | cut -d/ -f-4 | uniq | dirtree -o docs/dirtree.html"
]
[tasks.release]
script = [
"cargo build --release --bin cloudbanking"
]
[tasks.benchwrk]
script = '''
cargo run --release > /dev/null 2>&1 &
pid_cargo=$!
echo $pid_cargo
while ! nc -z '127.0.0.1' 3030; do
sleep 0.01
done
wrk -t10 -c1000 -d50s http://127.0.0.1:3030/healthcheck -s benchmark.lua
kill -9 $pid_cargo
'''
dependencies=["release"]
[tasks.limpiar]
script = [
"cargo tree --duplicate",
"cargo install cargo-udeps && cargo +nightly udeps"
]
[tasks.tree]
script = [
"cargo tree"
]