[A] Added appveyour

This commit is contained in:
seleznevae 2018-03-17 21:43:48 +03:00
parent 362051c2b9
commit 032b7faa49
2 changed files with 27 additions and 2 deletions

View File

@ -4,6 +4,7 @@ project(libfort)
option(FORT_TEST_BUILD "Test build with sanitizers and small library stack size" ON)
option(FORT_GCC_BUILD "Build with gcc" ON)
option(CERAII_MSVC_BUILD "Build with msvc" OFF)
set(CMAKE_VERBOSE_MAKEFILE ON)
@ -49,11 +50,11 @@ target_link_libraries(libfort_test
cmocka)
if(FORT_TEST_BUILD)
if(FORT_TEST_BUILD AND NOT CERAII_MSVC_BUILD)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address")
if(FORT_GCC_BUILD)
target_link_libraries(${PROJECT_NAME}_example asan)
target_link_libraries(${PROJECT_NAME}_test asan)
endif(FORT_GCC_BUILD)
endif(FORT_TEST_BUILD)
endif(FORT_TEST_BUILD AND NOT CERAII_MSVC_BUILD)

24
appveyor.yml Normal file
View File

@ -0,0 +1,24 @@
version: '{build}'
image: Visual Studio 2017
platform:
- x64
configuration:
- Debug
install:
- git submodule update --init --recursive
before_build:
- dir
- cd build
- dir
- cmake -G "Visual Studio 15 2017 Win64" .. -DFORT_TEST_BUILD=OFF -DFORT_GCC_BUILD=OFF -DFORT_MSVC_BUILD=ON
build:
project: $(APPVEYOR_BUILD_FOLDER)\build\$(APPVEYOR_PROJECT_NAME).sln
test_script:
- '%APPVEYOR_BUILD_FOLDER%\build\Debug\libfort_test.exe'