forked from puppetlabs-toy-chest/pxp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
40 lines (32 loc) · 2.35 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
environment:
LEATHERMAN_VERSION: 0.8.1
install:
- choco install -y mingw-w64 -Version 4.8.3 -source https://www.myget.org/F/puppetlabs
- choco install -y cmake -Version 3.2.2 -source https://www.myget.org/F/puppetlabs
- SET PATH=C:\tools\mingw64\bin;%PATH%
- ps: $env:PATH = $env:PATH.Replace("Git\bin", "Git\cmd")
- ps: $env:PATH = $env:PATH.Replace("Git\usr\bin", "Git\cmd")
- ps: wget 'https://s3.amazonaws.com/kylo-pl-bucket/boost_1_58_0-x86_64_mingw-w64_4.8.3_win32_seh.7z' -OutFile "$pwd\boost.7z"
- ps: 7z.exe x boost.7z -oC:\tools | FIND /V "ing "
- ps: wget 'https://s3.amazonaws.com/kylo-pl-bucket/openssl-1.0.2e-x64-windows.tar.lzma' -OutFile "$pwd\openssl.tar.lzma"
- ps: 7z.exe x openssl.tar.lzma | FIND /V "ing "
# Install locally so OpenSSL DLLs are in the same directory as the build artifacts. This avoids
# issues from picking up OpenSSL DLLs in C:\Windows\System32.
- ps: 7z.exe x openssl.tar | FIND /V "ing "
- SET OPENSSL_ROOT_DIR=%cd%
- ps: wget 'https://s3.amazonaws.com/kylo-pl-bucket/curl-7.42.1-x86_64_mingw-w64_4.8.3_win32_seh.7z' -OutFile "$pwd\curl-7.42.1-x86_64_mingw-w64_4.8.3_win32_seh.7z"
- ps: 7z.exe x "curl-7.42.1-x86_64_mingw-w64_4.8.3_win32_seh.7z" -oC:\tools | FIND /V "ing "
- ps: wget "https://github.com/puppetlabs/leatherman/releases/download/$env:LEATHERMAN_VERSION/leatherman.7z" -OutFile "$pwd\leatherman.7z"
- ps: 7z.exe x leatherman.7z -oC:\tools | FIND /V "ing "
- git clone https://github.com/puppetlabs/cpp-pcp-client
- cd cpp-pcp-client
- git checkout master
- ps: cmake -G "MinGW Makefiles" -DBOOST_ROOT="C:\tools\boost_1_58_0-x86_64_mingw-w64_4.8.3_win32_seh" -DBOOST_STATIC=ON -DCURL_STATIC=ON -DCMAKE_PREFIX_PATH="C:\tools\leatherman;C:\tools\curl-7.42.1-x86_64_mingw-w64_4.8.3_win32_seh" -Wno-dev -DCMAKE_INSTALL_PREFIX=C:\tools .
- ps: mingw32-make install
- cd ..
- SET PATH=C:\tools\bin;%PATH%
build_script:
- ps: cmake -G "MinGW Makefiles" -DBOOST_ROOT="C:\tools\boost_1_58_0-x86_64_mingw-w64_4.8.3_win32_seh" -DBOOST_STATIC=ON -DCURL_STATIC=ON -Wno-dev -DCMAKE_PREFIX_PATH="C:\tools\leatherman;C:\tools\curl-7.42.1-x86_64_mingw-w64_4.8.3_win32_seh;C:\tools;C:\tools\bin" -DCMAKE_INSTALL_PREFIX=C:\tools -DTEST_VIRTUAL=ON .
- ps: mingw32-make install
test_script:
- ps: ctest -V 2>&1 | %{ if ($_ -is [System.Management.Automation.ErrorRecord]) { $_ | c++filt } else { $_ } }