From cb43cb5c06aeff8f65d0194e279b9a2b04de9714 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 7 Mar 2018 03:07:42 +0100 Subject: [PATCH] ci: add experimental test environment with LSPs installed --- .appveyor.yml | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index e941ae1..a11891b 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -70,17 +70,52 @@ environment: -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 + +matrix: + allow_failures: + - lsp: 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: >- + Install-Product node 'Current' + + if ($env: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 + echo $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%