pipeline example

master
Martin Polanka 7 years ago
parent 84325bf3d2
commit 4223c3d544

@ -231,42 +231,45 @@ Example:
``` ```
[ [
{ { "variables":[] },
"name":"source", { "boxes": [
"portsIn":[], {
"portsOut":[{ "source_file":[{"type":"file", "value":"source_file"}] }], "name":"source",
"type":"data" "portsIn":[],
}, "portsOut":[{ "source_file":[{"type":"file", "value":"source_file"}] }],
{ "type":"data"
"name":"test", },
"portsIn":[], {
"portsOut":[{ "name":"test",
"test_file":[{"type":"file", "value":"test_file"}], "portsIn":[],
"expected_output":[{"type":"file", "value":"expected_output"}] "portsOut":[{
}], "test_file":[{"type":"file", "value":"test_file"}],
"type":"data" "expected_output":[{"type":"file", "value":"expected_output"}]
}, }],
{ "type":"data"
"name":"compilation", },
"portsIn":[{ "input_file":[{"type":"file", "value":"source_file"}] }], {
"portsOut":[{ "output_file":[{"type":"file", "value":"binary_file"}] }], "name":"compilation",
"type":"compilation" "portsIn":[{ "input_file":[{"type":"file", "value":"source_file"}] }],
}, "portsOut":[{ "output_file":[{"type":"file", "value":"binary_file"}] }],
{ "type":"compilation"
"name":"run", },
"portsIn":[{ "binary_file":[{"type":"file", "value":"binary_file"}] }], {
"portsOut":[{ "output_file":[{"type":"file", "value":"actual_output"}] }], "name":"run",
"type":"execution" "portsIn":[{ "binary_file":[{"type":"file", "value":"binary_file"}] }],
}, "portsOut":[{ "output_file":[{"type":"file", "value":"actual_output"}] }],
{ "type":"execution"
"name":"judge", },
"portsIn":[{ {
"actual_output":[{"type":"file", "value":"actual_output"}], "name":"judge",
"expected_output":[{"type":"file", "value":"expected_output"}] "portsIn":[{
}], "actual_output":[{"type":"file", "value":"actual_output"}],
"portsOut":[{ "score":[{"type":"file", "value":"score"}] }], "expected_output":[{"type":"file", "value":"expected_output"}]
"type":"evaluation" }],
} "portsOut":[{ "score":[{"type":"file", "value":"score"}] }],
"type":"evaluation"
}
] }
] ]
``` ```

Loading…
Cancel
Save