-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
32 lines (24 loc) · 1.2 KB
/
run.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
from Shared.project_management.dispatcher import Dispatcher, run_command
if __name__ == "__main__":
scripts = {
'doc': 'doc/run.py',
'Textual': 'Textual/run.py',
}
dispatcher = Dispatcher(scripts)
dispatcher.group.add_argument(
'--build_all',
action='store_true',
help='Build EVERYTHING: build models, compile source code, run tests, create reports, ..., and documentation).'
)
work_dir = dispatcher.parse_args()
if dispatcher.arguments.build_all:
run_command(['git', 'submodule', 'update', '--init'])
run_command(['python3', work_dir +'/run.py', '--Textual', '--simulator', '--unit_tests',
'--test', '--report', '--verbose', '--pseudo_tty_off'])
run_command(['python3', work_dir +'/run.py', '--Textual', '--simulator', '--features',
'--test', '--report', '--verbose', '--pseudo_tty_off'])
run_command(['python3', work_dir +'/run.py', '--Textual', '--doc',
'--build', '--verbose', '--pseudo_tty_off'])
run_command(['python3', work_dir +'/run.py', '--doc',
'--build', '--verbose', '--pseudo_tty_off'])
exit(0)