diff options
author | vitalyisaev <vitalyisaev@ydb.tech> | 2023-11-30 13:26:22 +0300 |
---|---|---|
committer | vitalyisaev <vitalyisaev@ydb.tech> | 2023-11-30 15:44:45 +0300 |
commit | 0a98fece5a9b54f16afeb3a94b3eb3105e9c3962 (patch) | |
tree | 291d72dbd7e9865399f668c84d11ed86fb190bbf /devtools/ya/handlers/make/__init__.py | |
parent | cb2c8d75065e5b3c47094067cb4aa407d4813298 (diff) | |
download | ydb-0a98fece5a9b54f16afeb3a94b3eb3105e9c3962.tar.gz |
YQ Connector:Use docker-compose in integrational tests
Diffstat (limited to 'devtools/ya/handlers/make/__init__.py')
-rw-r--r-- | devtools/ya/handlers/make/__init__.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/devtools/ya/handlers/make/__init__.py b/devtools/ya/handlers/make/__init__.py new file mode 100644 index 0000000000..e9d774f562 --- /dev/null +++ b/devtools/ya/handlers/make/__init__.py @@ -0,0 +1,32 @@ +from __future__ import absolute_import +from build.build_handler import do_ya_make +from build.build_opts import ya_make_options + +import core.yarg + +import app + + +class MakeYaHandler(core.yarg.OptsHandler): + description = 'Build and run tests\nTo see more help use [[imp]]-hh[[rst]]/[[imp]]-hhh[[rst]]' + + def __init__(self): + core.yarg.OptsHandler.__init__( + self, + action=app.execute(action=do_ya_make), + examples=[ + core.yarg.UsageExample('{prefix} -r', 'Build current directory in release mode', good_looking=100), + core.yarg.UsageExample( + '{prefix} -t -j16 library', 'Build and test library with 16 threads', good_looking=99 + ), + core.yarg.UsageExample( + '{prefix} --checkout -j0', 'Checkout absent directories without build', good_looking=98 + ), + ], + description=self.description, + opts=ya_make_options( + free_build_targets=True, + strip_idle_build_results=True, + ), + visible=True, + ) |