appveyor: explicitly build tests targets

This commit is contained in:
Hugues Delorme 2016-03-09 10:19:15 +01:00
parent ff1017d41f
commit fdfb87af4c

View File

@ -16,7 +16,6 @@ environment:
matrix: matrix:
- APPVEYOR_SHARED_LIBS: OFF - APPVEYOR_SHARED_LIBS: OFF
APPVEYOR_CMAKE_GENERATOR: "Visual Studio 12 2013" APPVEYOR_CMAKE_GENERATOR: "Visual Studio 12 2013"
APPVEYOR_RUN_CHECK: ON
- APPVEYOR_SHARED_LIBS: ON - APPVEYOR_SHARED_LIBS: ON
APPVEYOR_CMAKE_GENERATOR: "Visual Studio 12 2013" APPVEYOR_CMAKE_GENERATOR: "Visual Studio 12 2013"
@ -25,7 +24,7 @@ build:
build_script: build_script:
- cmake --version - cmake --version
- cd c:\projects\gmio.git - cd %APPVEYOR_BUILD_FOLDER%
- mkdir build && cd build - mkdir build && cd build
- cmake .. ^ - cmake .. ^
-G "%APPVEYOR_CMAKE_GENERATOR%" ^ -G "%APPVEYOR_CMAKE_GENERATOR%" ^
@ -38,5 +37,7 @@ build_script:
-DGMIO_BUILD_BENCHMARK_OPENCASCADE=OFF ^ -DGMIO_BUILD_BENCHMARK_OPENCASCADE=OFF ^
-DGMIO_BUILD_TESTS_FAKE_SUPPORT=ON -DGMIO_BUILD_TESTS_FAKE_SUPPORT=ON
- cmake --build . - cmake --build .
- cmake --build . --target ZERO_CHECK - cmake --build . --target test_core
- if defined APPVEYOR_RUN_CHECK ( cd tests && ctest . -V -C %CONFIGURATION% ) - cmake --build . --target test_stl
- set PATH=%APPVEYOR_BUILD_FOLDER%\build\src\%CONFIGURATION%;%PATH%
- cd tests && ctest . -V -C %CONFIGURATION%