feat: use conf.json
This commit is contained in:
parent
a49a6aa29d
commit
0648e32a89
60
conf.json
Normal file
60
conf.json
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
{
|
||||||
|
"stages": [
|
||||||
|
{
|
||||||
|
"name": "healthcheck",
|
||||||
|
"executor": {
|
||||||
|
"name": "sandbox",
|
||||||
|
"with": {
|
||||||
|
"default": {
|
||||||
|
"args": [
|
||||||
|
"./healthcheck",
|
||||||
|
"-root=.",
|
||||||
|
"-meta=readme",
|
||||||
|
"-whitelist=stderr",
|
||||||
|
"-whitelist=stdout",
|
||||||
|
"-whitelist=.*\\.toml",
|
||||||
|
"-whitelist=.*\\.md",
|
||||||
|
"-whitelist=healthcheck",
|
||||||
|
"-whitelist=.*\\.json",
|
||||||
|
"-whitelist=.git.*"
|
||||||
|
],
|
||||||
|
"env": [
|
||||||
|
"PATH=/usr/bin:/bin"
|
||||||
|
],
|
||||||
|
"cpuLimit": 10000000000,
|
||||||
|
"memoryLimit": 104857600,
|
||||||
|
"procLimit": 50,
|
||||||
|
"copyInCwd": true,
|
||||||
|
"copyIn": {
|
||||||
|
"healthcheck": {
|
||||||
|
"src": "./../../../../../../build/healthcheck",
|
||||||
|
"copyOut": [
|
||||||
|
"stdout",
|
||||||
|
"stderr"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stdin": {
|
||||||
|
"content": ""
|
||||||
|
},
|
||||||
|
"stdout": {
|
||||||
|
"name": "stdout",
|
||||||
|
"max": 4096
|
||||||
|
},
|
||||||
|
"stderr": {
|
||||||
|
"name": "stderr",
|
||||||
|
"max": 4096
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parser": {
|
||||||
|
"name": "healthcheck",
|
||||||
|
"with": {
|
||||||
|
"score": 10,
|
||||||
|
"comment": " + comment from toml conf"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
28
conf.toml
28
conf.toml
|
@ -1,28 +0,0 @@
|
||||||
skipGitea = true
|
|
||||||
[[stages]]
|
|
||||||
name = "healthcheck"
|
|
||||||
[stages.executor]
|
|
||||||
name = "sandbox"
|
|
||||||
[stages.executor.with.default]
|
|
||||||
args = ["./healthcheck", "-root=.", "-meta=readme", "-whitelist=stderr", "-whitelist=stdout", "-whitelist=.*\\.toml", "-whitelist=.*\\.md", "-whitelist=healthcheck", "-whitelist=.*\\.json", "-whitelist=.git.*"]
|
|
||||||
env = ["PATH=/usr/bin:/bin"]
|
|
||||||
cpuLimit = 10_000_000_000
|
|
||||||
memoryLimit = 104_857_600
|
|
||||||
procLimit = 50
|
|
||||||
copyInCwd = true
|
|
||||||
[stages.executor.with.default.copyIn.healthcheck]
|
|
||||||
src = "./../../../../../../build/healthcheck"
|
|
||||||
copyOut = ["stdout", "stderr"]
|
|
||||||
[stages.executor.with.default.stdin]
|
|
||||||
content = ""
|
|
||||||
[stages.executor.with.default.stdout]
|
|
||||||
name = "stdout"
|
|
||||||
max = 4_096
|
|
||||||
[stages.executor.with.default.stderr]
|
|
||||||
name = "stderr"
|
|
||||||
max = 4_096
|
|
||||||
[stages.parser]
|
|
||||||
name = "healthcheck"
|
|
||||||
[stages.parser.with]
|
|
||||||
score = 10
|
|
||||||
comment = " + comment from toml conf"
|
|
Loading…
Reference in New Issue
Block a user