refactor: internal package
This commit is contained in:
5
internal/config/testdata/boxes.json
vendored
Normal file
5
internal/config/testdata/boxes.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"python": {
|
||||
"image": "codapi/python"
|
||||
}
|
||||
}
|
||||
25
internal/config/testdata/commands.json
vendored
Normal file
25
internal/config/testdata/commands.json
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"python": {
|
||||
"run": {
|
||||
"engine": "docker",
|
||||
"entry": "main.py",
|
||||
"steps": [
|
||||
{
|
||||
"box": "python",
|
||||
"command": ["python", "main.py"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"engine": "docker",
|
||||
"entry": "test_main.py",
|
||||
"steps": [
|
||||
{
|
||||
"box": "python",
|
||||
"command": ["python", "-m", "unittest"],
|
||||
"noutput": 8192
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
10
internal/config/testdata/config.json
vendored
Normal file
10
internal/config/testdata/config.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"pool_size": 8,
|
||||
"verbose": true,
|
||||
"box": {
|
||||
"memory": 64
|
||||
},
|
||||
"step": {
|
||||
"user": "sandbox"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user