mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-26 03:35:22 +00:00
use the cmake and ctest to drive the appveyor build
This commit is contained in:
parent
d3fe82c55b
commit
0a4acc9656
@ -24,8 +24,8 @@ else:
|
|||||||
if platform == 'x64':
|
if platform == 'x64':
|
||||||
generator += ' Win64'
|
generator += ' Win64'
|
||||||
cmake_command.append('-G' + generator)
|
cmake_command.append('-G' + generator)
|
||||||
build_command = ['msbuild', '/m:4', '/p:Config=' + config, 'FORMAT.sln']
|
build_command = ['cmake', '--build', '.', '--config', config, '--', '/m:4'],
|
||||||
test_command = ['msbuild', 'RUN_TESTS.vcxproj']
|
test_command = ['ctest', '-C', config]
|
||||||
|
|
||||||
check_call(cmake_command)
|
check_call(cmake_command)
|
||||||
check_call(build_command)
|
check_call(build_command)
|
||||||
|
@ -115,6 +115,7 @@ add_test(compile-test ${CMAKE_CTEST_COMMAND}
|
|||||||
|
|
||||||
# test if the targets are findable from the build directory
|
# test if the targets are findable from the build directory
|
||||||
add_test(find-package-test ${CMAKE_CTEST_COMMAND}
|
add_test(find-package-test ${CMAKE_CTEST_COMMAND}
|
||||||
|
-C ${CMAKE_BUILD_TYPE}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/find-package-test"
|
"${CMAKE_CURRENT_SOURCE_DIR}/find-package-test"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/find-package-test"
|
"${CMAKE_CURRENT_BINARY_DIR}/find-package-test"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user