forked from ocadotechnology/aimmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
executable file
·45 lines (39 loc) · 1.23 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
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python
import argparse
import logging
import traceback
from aimmo_runner import runner
logging.basicConfig()
parser = argparse.ArgumentParser(description="Runs Kurono.")
parser.add_argument(
"-t",
"--target",
dest="build_target",
choices=["runner", "tester"],
action="store",
default="runner",
help="""Specify the build stage you wish the docker containers to stop at.
By default we simply run the project. This can be used to run the tests
but it is recommended that you used 'all_tests.py'
Options: runner, tester """,
)
parser.add_argument(
"-c",
"--using-cypress",
dest="using_cypress",
action="store_true",
default=False,
help="""Specify if you want to run the project for running Cypress tests. This
disables the building of the Docker images and builds the frontend in production
mode without watching for changes.""",
)
if __name__ == "__main__":
try:
args = parser.parse_args()
runner.run(
using_cypress=args.using_cypress,
build_target=args.build_target,
)
except Exception as err:
traceback.print_exc()
raise