Stasik0 лет назад: 9
Родитель
Сommit
2c869f59ab
3 измененных файлов с 20 добавлено и 1 удалено
  1. 1 1
      CMakeLists.txt
  2. 1 0
      README.md
  3. 18 0
      appveyor.yml

+ 1 - 1
CMakeLists.txt

@@ -40,7 +40,7 @@ if(NOT CMAKE_BUILD_TYPE)
 endif()
 
 # compiler flags
-if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
+if(CMAKE_COMPILER_IS_GNUCC OR "x${CMAKE_C_COMPILER_ID}" STREQUAL "xClang")
     add_definitions(-std=c99 -pipe -Wall -Wextra -Werror -Wformat -Wno-unused-parameter
                     -Wno-unused-function -Wno-unused-label -Wpointer-arith -Wreturn-type -Wsign-compare -Wmultichar
                     -Wcast-qual -Wmissing-prototypes -Wstrict-prototypes # -Wshadow -Wconversion

+ 1 - 0
README.md

@@ -7,6 +7,7 @@ open62541 is licensed under the LGPL + static linking exception. That means **op
 
 [![Ohloh Project Status](https://www.ohloh.net/p/open62541/widgets/project_thin_badge.gif)](https://www.ohloh.net/p/open62541)
 [![Build Status](https://travis-ci.org/acplt/open62541.png?branch=master)](https://travis-ci.org/acplt/open62541)
+[![MSVS build status](https://ci.appveyor.com/api/projects/status/w2geggs5s28gfu6t/branch/master?svg=true)](https://ci.appveyor.com/project/Stasik0/open62541/branch/master)
 [![Coverage Status](https://coveralls.io/repos/acplt/open62541/badge.png?branch=master)](https://coveralls.io/r/acplt/open62541?branch=master)
 [![Coverity Scan Build Status](https://scan.coverity.com/projects/1864/badge.svg)](https://scan.coverity.com/projects/1864)
 

+ 18 - 0
appveyor.yml

@@ -0,0 +1,18 @@
+version: '{build}'
+os: Visual Studio 2015 RC
+clone_folder: c:\projects\open62541
+before_build:
+- python -m pip install lxml
+build_script:
+- cd c:\projects\open62541
+- md build
+- cd build
+- cmake -DBUILD_EXAMPLESERVER:BOOL=ON -DBUILD_EXAMPLECLIENT:BOOL=ON -G"Visual Studio 12 2013" ..
+- msbuild open62541.sln
+- echo "Testing amalgamation"
+- cd ..
+- rd /s /q build
+- md build
+- cd build
+- cmake -DBUILD_EXAMPLESERVER:BOOL=ON -DBUILD_EXAMPLECLIENT:BOOL=ON -DENABLE_AMALGAMATION:BOOL=ON -G"Visual Studio 12 2013" ..
+- msbuild open62541.sln