|
1 | 1 | environment:
|
2 |
| - LEATHERMAN_VERSION: 0.9.0 |
3 |
| -install: |
4 |
| - - git submodule update --init --recursive |
5 |
| - |
6 |
| - - choco install -y mingw-w64 -Version 4.8.3 -source https://www.myget.org/F/puppetlabs |
7 |
| - - choco install -y cmake -Version 3.2.2 -source https://www.myget.org/F/puppetlabs |
8 |
| - - choco install -y gettext -Version 0.19.6 -source https://www.myget.org/F/puppetlabs |
9 |
| - - SET PATH=C:\Ruby21-x64\bin;C:\tools\mingw64\bin;C:\Program Files\gettext-iconv;%PATH% |
10 |
| - - ps: $env:PATH = $env:PATH.Replace("Git\bin", "Git\cmd") |
11 |
| - - ps: $env:PATH = $env:PATH.Replace("Git\usr\bin", "Git\cmd") |
12 |
| - |
13 |
| - - 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" |
14 |
| - - ps: 7z.exe x boost.7z -oC:\tools | FIND /V "ing " |
| 2 | + LEATHERMAN_VERSION: 1.2.1 |
| 3 | +init: |
| 4 | + - | |
| 5 | + choco install -y mingw-w64 -Version 5.2.0 -source https://www.myget.org/F/puppetlabs |
| 6 | + choco install -y cmake -Version 3.2.2 -source https://www.myget.org/F/puppetlabs |
| 7 | + choco install -y gettext -Version 0.19.6 -source https://www.myget.org/F/puppetlabs |
| 8 | + choco install -y pl-toolchain-x64 -Version 2015.12.01.1 -source https://www.myget.org/F/puppetlabs |
| 9 | + choco install -y pl-boost-x64 -Version 1.58.0.2 -source https://www.myget.org/F/puppetlabs |
| 10 | + choco install -y pl-curl-x64 -Version 7.46.0.1 -source https://www.myget.org/F/puppetlabs |
| 11 | + - ps: | |
| 12 | + wget "https://github.com/puppetlabs/leatherman/releases/download/$env:LEATHERMAN_VERSION/leatherman.7z" -OutFile "$env:temp\leatherman.7z" |
| 13 | + 7z.exe x $env:temp\leatherman.7z -oC:\tools | FIND /V "ing " |
15 | 14 |
|
16 |
| - - 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" |
17 |
| - - ps: 7z.exe x "curl-7.42.1-x86_64_mingw-w64_4.8.3_win32_seh.7z" -oC:\tools | FIND /V "ing " |
18 |
| - |
19 |
| - - ps: wget "https://github.com/puppetlabs/leatherman/releases/download/$env:LEATHERMAN_VERSION/leatherman.7z" -OutFile "$pwd\leatherman.7z" |
20 |
| - - ps: 7z.exe x leatherman.7z -oC:\tools | FIND /V "ing " |
| 15 | +install: |
| 16 | + # Minimize environment polution; previously we were linking against the wrong OpenSSL DLLs. |
| 17 | + # Include Ruby and Powershell for unit tests. |
| 18 | + - SET PATH=C:\tools\pl-build-tools\bin;C:\tools\mingw64\bin;C:\ProgramData\chocolatey\bin;C:\Ruby22-x64\bin;C:\Program Files\7-Zip;C:\Windows\system32;C:\Windows;C:\Windows\System32\WindowsPowerShell\v1.0 |
21 | 19 |
|
22 | 20 | build_script:
|
23 |
| - - ps: cmake -G "MinGW Makefiles" -DBOOST_ROOT="C:\tools\boost_1_58_0-x86_64_mingw-w64_4.8.3_win32_seh" -DCMAKE_PREFIX_PATH="C:\tools\leatherman;C:\tools\curl-7.42.1-x86_64_mingw-w64_4.8.3_win32_seh" -DCURL_STATIC=ON -DBOOST_STATIC=ON -Wno-dev -DCMAKE_INSTALL_PREFIX=C:\tools\cpp-hocon . |
24 |
| - - ps: mingw32-make install |
25 |
| - - ps: 7z.exe a -t7z cpp-hocon.7z C:\tools\cpp-hocon\ |
| 21 | + - ps: | |
| 22 | + 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-hocon -DBOOST_STATIC=ON . |
| 23 | + mingw32-make install |
| 24 | + 7z.exe a -t7z cpp-hocon.7z C:\tools\cpp-hocon\ |
26 | 25 |
|
27 | 26 | test_script:
|
28 | 27 | - ps: ctest -V 2>&1 | %{ if ($_ -is [System.Management.Automation.ErrorRecord]) { $_ | c++filt } else { $_ } }
|
|
0 commit comments