feat: use conf.json

This commit is contained in:
张泊明518370910136 2024-09-19 17:07:29 -04:00
parent 1ec92f39ce
commit 80ec230f63
GPG Key ID: CA088E6D9284F870
2 changed files with 48 additions and 26 deletions

48
conf.json Normal file
View File

@ -0,0 +1,48 @@
{
"stages": [
{
"name": "cpplint",
"executor": {
"name": "sandbox",
"with": {
"default": {
"args": [
"bash",
"-c",
"cpplint src/*.cpp"
],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"cpuLimit": 10000000000,
"memoryLimit": 104857600,
"procLimit": 50,
"copyInCwd": true,
"copyOut": [
"stdout",
"stderr"
],
"stdin": {
"content": ""
},
"stdout": {
"name": "stdout",
"max": 65536
},
"stderr": {
"name": "stderr",
"max": 65536
}
}
}
},
"parser": {
"name": "cpplint",
"with": {
"score": 100,
"comment": "check done"
}
}
}
]
}

View File

@ -1,26 +0,0 @@
skipGitea = true
[[stages]]
name = "cpplint"
[stages.executor]
name = "sandbox"
[stages.executor.with.default]
args = ["bash", "-c", "cpplint src/*.cpp"]
env = ["PATH=/usr/bin:/bin:/usr/local/bin"]
cpuLimit = 10_000_000_000
memoryLimit = 104_857_600
procLimit = 50
copyInCwd = true
copyOut = ["stdout", "stderr"]
[stages.executor.with.default.stdin]
content = ""
[stages.executor.with.default.stdout]
name = "stdout"
max = 65_536
[stages.executor.with.default.stderr]
name = "stderr"
max = 65_536
[stages.parser]
name = "cpplint"
[stages.parser.with]
score = 100
comment = "check done"