[A] Added appveyour
This commit is contained in:
parent
362051c2b9
commit
032b7faa49
@ -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
24
appveyor.yml
Normal 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'
|
Loading…
Reference in New Issue
Block a user