-
Notifications
You must be signed in to change notification settings - Fork 0
/
constructicon.py
60 lines (60 loc) · 1.72 KB
/
constructicon.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#used in go.py example and tests
constructicon={
'builders': {
'basic': {
'accept': "features['platform']=='linux'",
'commands': ['python go.py -h'],
'schedulers': ['force-7'],
'upload': {
'readme.md': 'readme-dest.md',
'constructicon.py': 'constructicon-dest.py',
'devastator': 'devastator-dest',
},
'zip': ['constructicon-dest.py', 'devastator'],
'unzip': ['devastator-dest'],
'url': {'devastator-dest': 'devastator/template'},
},
'sleep': {
'commands': ['python -c "import time; time.sleep(10)"'],
'resources': ['cpap machine'],
},
'deps': {
'deps': ['https://github.com/dansgithubuser/playground'],#alternatively: [{'url': 'https://github.com/dansgithubuser/playground', 'revision': 'master'}]
'commands': ['python ../playground/timestamp.py'],
},
'schedulers': {
'commands': ['python -c "import os; print({lucky_number}); print(os.environ)"'],
'schedulers': ['force-7', 'time-42', 'commit-13'],
},
'user-slave': {
'accept': "features['platform']=='snes' and features['memory']=='goldfish'",
'commands': ['python go.py -h'],
'resources': ['cpap machine'],
},
'get': {
'get': {'constructicon-basic': ["build['number']"]},
'commands': ['python ../constructicon-basic/constructicon-dest.py'],
},
},
'schedulers': {
'force-7': {
'type': 'force',
'parameters': {'lucky_number': 7, 'version': ''},
},
'time-42': {
'type': 'time',
'hour': '*',
'minute': '*',
'parameters': {'lucky_number': 42},
},
'commit-13': {
'type': 'commit',
'parameters': {'lucky_number': 13},
'branch_regex': 'test',
},
},
'slaves': {
'constructicon-user-slave-1': {'platform': 'snes', 'memory': 'goldfish'},
'constructicon-user-slave-bad': {},
},
}