-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
107 lines (107 loc) · 2.97 KB
/
config.yaml
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
base:
api:
url: http://127.0.0.1:3000
credential:
username: foo
password: bar
# relative to current dir
sandbox:
# relative to current dir
runtimeDirectory: ../runtime
compile:
# WARN: config will be MERGED so that this section is tricky in `config.xxx.yaml`
_base:
timeout: 20000
target: main
sandboxArgs: --use-logon
env:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_gcc:
command: gcc
source: main.c
_g++:
command: g++
source: main.cpp
_clang:
command: clang
source: main.c
_clang++:
command: clang++
source: main.cpp
gcc99:
extend: [_base, _gcc]
args: -O3 -Wall -o main main.c -lm -std=c99
gcc11:
extend: [_base, _gcc]
args: -O3 -Wall -o main main.c -lm -std=c11
clang99:
extend: [_base, _clang]
args: -O3 -Wall -o main main.c -std=c99
clang11:
extend: [_base, _clang]
args: -O3 -Wall -o main main.c -std=c11
g++98:
extend: [_base, _g++]
args: -O3 -Wall -o main main.cpp -lm -std=c++98
g++11:
extend: [_base, _g++]
args: -O3 -Wall -o main main.cpp -lm -std=c++11
g++14:
extend: [_base, _g++]
args: -O3 -Wall -o main main.cpp -lm -std=c++14
g++17:
extend: [_base, _g++]
args: -O3 -Wall -o main main.cpp -lm -std=c++17
clang++98:
extend: [_base, _clang++]
args: -O3 -Wall -o main main.cpp -std=c++98
clang++11:
extend: [_base, _clang++]
args: -O3 -Wall -o main main.cpp -std=c++11
clang++14:
extend: [_base, _clang++]
args: -O3 -Wall -o main main.cpp -std=c++14
clang++17:
extend: [_base, _clang++]
args: -O3 -Wall -o main main.cpp -std=c++17
python2:
extend: [_base]
command: sh
source: main.py
args: -c 'cp main.py main && echo >> main && sed -i 1i#!/usr/bin/python2 main && chmod +x main'
python3:
extend: [_base]
command: sh
source: main.py
args: -c 'cp main.py main && echo >> main && sed -i 1i#!/usr/bin/python3 main && chmod +x main'
node.js:
extend: [_base]
command: sh
source: main.js
args: -c 'cp main.js main && echo >> main && sed -i 1i#!/usr/bin/node main && chmod +x main'
match:
s1bin: ./challenger
s2bin: ./opponent
opening: opening.json
config: config.json
summary: summary.json
command: node
# relative to the working directory
args: ../../../fun-judge/.dist/bootstrap.js --config config.json
mq:
vhosts:
/:
connection:
hostname: 127.0.0.1
user: guest
password: guest
queues:
- gomoku_compile
- gomoku_judge
subscriptions:
compile:
queue: gomoku_compile
prefetch: 1 # don't modify it! only one submission at a time!
judge:
queue: gomoku_judge
prefetch: 1 # set to number of floor((CPUs - 1) / 2)