Create appveyor.yml
This commit is contained in:
parent
2dace94311
commit
15bc90bc39
42
appveyor.yml
Normal file
42
appveyor.yml
Normal file
@ -0,0 +1,42 @@
|
||||
version: '{build}'
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
clone_folder: c:\projects\libnfc
|
||||
image:
|
||||
- Visual Studio 2013
|
||||
- Visual Studio 2015
|
||||
- Visual Studio 2017
|
||||
configuration:
|
||||
- Release
|
||||
- Debug
|
||||
platform:
|
||||
- x64
|
||||
environment:
|
||||
matrix:
|
||||
- arch: Win64
|
||||
# - arch: #does not work, Release|x64 not a valid target
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
||||
# skip unsupported combinations
|
||||
init:
|
||||
- set arch=
|
||||
- if "%arch%"=="Win64" ( set arch= Win64)
|
||||
- echo %arch%
|
||||
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
|
||||
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
|
||||
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
|
||||
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013%arch%" )
|
||||
- echo %generator%
|
||||
|
||||
before_build:
|
||||
- cmd: |-
|
||||
mkdir build
|
||||
cd build
|
||||
cmake --version
|
||||
cmake .. -DLIBNFC_DRIVER_PN53X_USB=OFF -DLIBNFC_DRIVER_ACR122_USB=OFF -G %generator%
|
||||
build:
|
||||
project: c:\projects\libnfc\build\libnfc.sln
|
||||
verbosity: minimal
|
||||
parallel: true
|
||||
Loading…
x
Reference in New Issue
Block a user