-
Notifications
You must be signed in to change notification settings - Fork 0
/
cybertron.py
36 lines (34 loc) · 971 Bytes
/
cybertron.py
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
#used in go.py example and tests
import os
offset=int(os.environ.get('CONSTRUCTICON_PORT_OFFSET', 0))
cybertron={
'slaves': {
'slave-1': {'platform': 'linux', 'memory': 'goldfish'},
'slave-bad': {},
},
'megatron_hostname': 'localhost',
'megatron_master_port': 9120+offset,
'megatron_slave_port': 9121+offset,
'devastator_master_port': 9122+offset,
'devastator_slave_port': 9123+offset,
'devastator_file_server_port': 9124+offset,
'horizon': 100,
'builder_base': {
'accept': "features['memory']=='goldfish'",
'deps': ['https://github.com/dansgithubuser/crangen'],
'precommands': ['echo precommand from cybertron'],
'commands': ['echo command from cybertron'],
'upload': {'go.py': 'go.py'},
'schedulers': ['force-cybertron', 'commit-cybertron'],
},
'schedulers': {
'force-cybertron': {
'type': 'force',
'parameters': {'tea': 'secrets'},
},
'commit-cybertron': {
'type': 'commit',
'branch_regex': 'test-cybertron',
},
},
}