Skip to content

Commit

Permalink
[appveyor] fail on test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
gicmo committed Jun 8, 2017
1 parent a0f4230 commit 8bf23ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .appveyor.ctest
Expand Up @@ -29,5 +29,9 @@ set(CTEST_CONFIGURATION_TYPE ${CONFIGURATION})
ctest_start(Continuous)
ctest_configure()
ctest_build()
ctest_test()
ctest_test(RETURN_VALUE tests_ret)
ctest_submit()

if(NOT tests_ret EQUAL 0)
message(FATAL_ERROR "Test had failures!")
endif()
7 changes: 3 additions & 4 deletions appveyor.yml
Expand Up @@ -24,9 +24,8 @@ build_script:
ctest -VV --output-on-failure -S .appveyor.ctest
cmake --build .\build --config %CONFIGURATION% --target PACKAGE
test_script:
- cmd:
after_build:
- cmd: cmake --build .\build --config %CONFIGURATION% --target PACKAGE

artifacts:
- path: build\*.exe

0 comments on commit 8bf23ba

Please sign in to comment.