128 lines
3.7 KiB
YAML
128 lines
3.7 KiB
YAML
version: b{build}-{branch}
|
|
|
|
environment:
|
|
matrix:
|
|
- job: msvc-vs2013-x86
|
|
appveyor_build_worker_image: Visual Studio 2013
|
|
cmake_options: -G "Visual Studio 12 2013"
|
|
|
|
- job: msvc-vs2013-x64
|
|
appveyor_build_worker_image: Visual Studio 2013
|
|
cmake_options: -G "Visual Studio 12 2013 Win64"
|
|
|
|
- job: msvc-vs2015-x86
|
|
appveyor_build_worker_image: Visual Studio 2015
|
|
cmake_options: -G "Visual Studio 14 2015"
|
|
|
|
- job: msvc-vs2015-x64
|
|
appveyor_build_worker_image: Visual Studio 2015
|
|
cmake_options: -G "Visual Studio 14 2015 Win64"
|
|
|
|
- job: msvc-vs2017-x86
|
|
appveyor_build_worker_image: Visual Studio 2017
|
|
cmake_options: -G "Visual Studio 15 2017"
|
|
|
|
- job: msvc-vs2017-x64
|
|
appveyor_build_worker_image: Visual Studio 2017
|
|
cmake_options: -G "Visual Studio 15 2017 Win64"
|
|
|
|
- job: gcc-mingw-x86
|
|
appveyor_build_worker_image: Visual Studio 2015
|
|
mingw_path: c:\msys64\mingw32\bin
|
|
cmake_options: >
|
|
-G "MinGW Makefiles"
|
|
-DCMAKE_C_COMPILER=gcc
|
|
-DCMAKE_CXX_COMPILER=g++
|
|
-DCMAKE_C_FLAGS=-m32
|
|
-DCMAKE_CXX_FLAGS=-m32
|
|
|
|
- job: gcc-mingw-x64
|
|
appveyor_build_worker_image: Visual Studio 2015
|
|
mingw_path: c:\msys64\mingw64\bin
|
|
cmake_options: >
|
|
-G "MinGW Makefiles"
|
|
-DCMAKE_C_COMPILER=gcc
|
|
-DCMAKE_CXX_COMPILER=g++
|
|
-DCMAKE_C_FLAGS=-m64
|
|
-DCMAKE_CXX_FLAGS=-m64
|
|
|
|
- job: clang-mingw-x86
|
|
appveyor_build_worker_image: Visual Studio 2015
|
|
mingw_path: c:\msys64\mingw32\bin
|
|
vs_path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
|
|
setup_script: vcvarsall.bat x86
|
|
cmake_options: >
|
|
-G "MinGW Makefiles"
|
|
-DCMAKE_C_COMPILER=clang-cl
|
|
-DCMAKE_CXX_COMPILER=clang-cl
|
|
-DCMAKE_C_FLAGS=-m32
|
|
-DCMAKE_CXX_FLAGS=-m32
|
|
|
|
- job: clang-mingw-x64
|
|
appveyor_build_worker_image: Visual Studio 2015
|
|
mingw_path: c:\msys64\mingw64\bin
|
|
vs_path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
|
|
setup_script: vcvarsall.bat amd64
|
|
cmake_options: >
|
|
-G "MinGW Makefiles"
|
|
-DCMAKE_C_COMPILER=clang-cl
|
|
-DCMAKE_CXX_COMPILER=clang-cl
|
|
-DCMAKE_C_FLAGS=-m64
|
|
-DCMAKE_CXX_FLAGS=-m64
|
|
|
|
- job: msvc-vs2013-x86-LSP
|
|
appveyor_build_worker_image: Visual Studio 2013
|
|
cmake_options: -G "Visual Studio 12 2013"
|
|
lsp: true
|
|
appveyor_save_cache_on_error: true
|
|
|
|
- job: msvc-vs2017-x64-LSP
|
|
appveyor_build_worker_image: Visual Studio 2017
|
|
cmake_options: -G "Visual Studio 15 2017 Win64"
|
|
lsp: true
|
|
appveyor_save_cache_on_error: true
|
|
|
|
configuration: Debug
|
|
|
|
clone_folder: c:\wepoll
|
|
shallow_clone: true
|
|
clone_depth: 1
|
|
|
|
cache:
|
|
- c:\proxif
|
|
|
|
init:
|
|
- cmd: set
|
|
|
|
install:
|
|
- ps: Install-Product node 'Current'
|
|
- ps: >-
|
|
if ($env:lsp) {
|
|
echo "Installing Proxifier LSP..."
|
|
if (!(Test-Path c:\proxif\setup.exe)) {
|
|
$null = &mkdir -Force c:\proxif
|
|
Invoke-WebRequest -Uri http://www.proxifier.com/download/ProxifierSetup.exe -OutFile "c:\proxif\setup.exe"
|
|
}
|
|
|
|
Start-Process -Wait c:\proxif\setup.exe -ArgumentList /silent,/norestart
|
|
|
|
$catalog = &netsh winsock show catalog
|
|
if (!($catalog -like "*Layered Chain Entry*")) {
|
|
throw "LSP not installed"
|
|
}
|
|
}
|
|
- cmd: set path=%path:C:\Program Files\Git\usr\bin;=%
|
|
- cmd: set path=%path%;%mingw_path%
|
|
- cmd: set path=%path%;%vs_path%
|
|
- cmd: call %setup_script%
|
|
|
|
before_build:
|
|
- cmd: cmake . %cmake_options%
|
|
|
|
build_script:
|
|
- cmd: cmake --build . --config "%configuration%" --target wepoll.dll
|
|
- cmd: cmake --build . --config "%configuration%" --target wepoll-combined.dll
|
|
|
|
test_script:
|
|
- cmd: cmake --build . --config "%configuration%" --target test-all
|