This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathappveyor.yml
52 lines (45 loc) · 2.26 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
41
42
43
44
45
46
47
48
49
50
51
52
environment:
LEATHERMAN_VERSION: 1.4.0
matrix:
- shared: OFF
- shared: ON
init:
- |
choco install -y mingw-w64 -Version 5.2.0 -source https://www.myget.org/F/puppetlabs
choco install -y cmake -Version 3.2.2 -source https://www.myget.org/F/puppetlabs
choco install -y gettext -Version 0.19.6 -source https://www.myget.org/F/puppetlabs
choco install -y pl-toolchain-x64 -Version 2015.12.01.1 -source https://www.myget.org/F/puppetlabs
choco install -y pl-boost-x64 -Version 1.58.0.2 -source https://www.myget.org/F/puppetlabs
choco install -y pl-openssl-x64 -Version 1.0.24.1 -source https://www.myget.org/F/puppetlabs
choco install -y pl-curl-x64 -Version 7.46.0.1 -source https://www.myget.org/F/puppetlabs
install:
- ps: |
wget "https://github.com/puppetlabs/leatherman/releases/download/$env:LEATHERMAN_VERSION/leatherman.7z" -OutFile "$pwd\leatherman.7z"
7z.exe x leatherman.7z -oC:\tools | FIND /V "ing "
# Minimize environment polution; previously we were linking against the wrong OpenSSL DLLs.
- SET PATH=C:\tools\pl-build-tools\bin;C:\tools\mingw64\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\7-Zip;C:\Windows\system32;C:\Windows
- ps: rm -r C:\OpenSSL-Win64
build_script:
- ps: |
cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE="C:\tools\pl-build-tools\pl-build-toolchain.cmake" -DCMAKE_PREFIX_PATH="C:\tools\leatherman" -DCMAKE_INSTALL_PREFIX=C:\tools\cpp-pcp-client -DBOOST_STATIC=ON -DBUILD_SHARED_LIBS="$env:shared" .
mingw32-make -j2
test_script:
# DLLs in C:\Windows\system32 get picked up first, despite PATH. Make local copies to override that behavior.
- ps: |
cp C:\Tools\pl-build-tools\bin\libeay32.dll .\bin
cp C:\Tools\pl-build-tools\bin\ssleay32.dll .\bin
ctest -V 2>&1 | %{ if ($_ -is [System.Management.Automation.ErrorRecord]) { $_ | c++filt } else { $_ } }
mingw32-make install
7z.exe a -t7z cpp-pcp-client.7z C:\tools\cpp-pcp-client\
artifacts:
- path: cpp-pcp-client.7z
name: cpp-pcp-client.7z
deploy:
description: cpp-pcp-client build from AppVeyor
provider: GitHub
auth_token:
secure: RlVaba6k+N1/p56mjknNAwKrXQwQpKRn0SIr+AZ8TuVszFntRxl0qFPHcq4bOMui
artifact: cpp-pcp-client.7z
on:
appveyor_repo_tag: true
shared: OFF