mirror of
https://github.com/boostorg/redis.git
synced 2026-01-19 04:42:09 +00:00
B2 CI
This commit is contained in:
22
tools/ci.py
22
tools/ci.py
@@ -278,6 +278,22 @@ def _run_cmake_b2_find_package_tests(
|
||||
_run(['ctest', '--output-on-failure', '--build-config', build_type, '--no-tests=error'])
|
||||
|
||||
|
||||
# Builds and runs the library tests using b2
|
||||
def _run_b2_tests(
|
||||
variant: str,
|
||||
cxxstd: str,
|
||||
toolset: str
|
||||
):
|
||||
os.chdir(str(_boost_root))
|
||||
_run([
|
||||
'b2',
|
||||
'--abbreviate-paths',
|
||||
'toolset={}'.format(toolset),
|
||||
'cxxstd={}'.format(cxxstd),
|
||||
'variant={}'.format(variant),
|
||||
'-j4',
|
||||
'libs/redis/test'
|
||||
])
|
||||
|
||||
|
||||
def main():
|
||||
@@ -336,6 +352,12 @@ def main():
|
||||
subp.add_argument('--build-shared-libs', type=_str2bool, default=False)
|
||||
subp.set_defaults(func=_run_cmake_b2_find_package_tests)
|
||||
|
||||
subp = subparsers.add_parser('run-b2-tests')
|
||||
subp.add_argument('--variant', default='debug,release')
|
||||
subp.add_argument('--cxxstd', default='17,20')
|
||||
subp.add_argument('--toolset', default='gcc')
|
||||
subp.set_defaults(func=_run_b2_tests)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
os.environ['CMAKE_BUILD_PARALLEL_LEVEL'] = '4'
|
||||
|
||||
Reference in New Issue
Block a user