forked from puppetlabs/libwhereami
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
26 lines (21 loc) · 1.55 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
version: 0.0.1.{build}
environment:
LEATHERMAN_VERSION: 0.7.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
- choco install -y gettext -Version 0.19.6 -source https://www.myget.org/F/puppetlabs
- SET PATH=C:\Ruby21-x64\bin;C:\tools\mingw64\bin;C:\Program Files\gettext-iconv;%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/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 "
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 -DCMAKE_PREFIX_PATH="C:\tools\leatherman;C:\tools\curl-7.42.1-x86_64_mingw-w64_4.8.3_win32_seh" .
- ps: mingw32-make install
test_script:
- ps: ctest -V 2>&1 | %{ if ($_ -is [System.Management.Automation.ErrorRecord]) { $_ | c++filt } else { $_ } }