|
1 | | -# Copyright 2016, 2017 Peter Dimov |
2 | | -# Copyright (C) 2017, 2018 James E. King III |
| 1 | +# Copyright 2016-2019 Peter Dimov |
3 | 2 | # Distributed under the Boost Software License, Version 1.0. |
4 | 3 | # (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) |
5 | 4 |
|
6 | | -# When copying this to a new library, be sure to update the name of the library |
7 | | -# in two places (once each at the top of install: and test_script:) |
8 | | - |
9 | 5 | version: 1.0.{build}-{branch} |
10 | 6 |
|
11 | 7 | shallow_clone: true |
12 | 8 |
|
13 | 9 | branches: |
14 | 10 | only: |
15 | | - - develop |
16 | 11 | - master |
17 | | - |
18 | | -matrix: |
19 | | - allow_failures: |
20 | | - - MAYFAIL: true |
| 12 | + - develop |
| 13 | + - /feature\/.*/ |
21 | 14 |
|
22 | 15 | environment: |
23 | | - global: |
24 | | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
25 | | - # see: http://www.boost.org/build/doc/html/bbv2/overview/invocation.html#bbv2.overview.invocation.properties |
26 | | - # to use the default for a given environment, comment it out; recommend you build debug and release however.. |
27 | | - # on Windows it is important to exercise all the possibilities, especially shared vs static |
28 | | - # B2_ADDRESS_MODEL: address-model=64,32 |
29 | | - # B2_LINK: link=shared,static |
30 | | - # B2_THREADING: threading=multi,single |
31 | | - B2_VARIANT: variant=release,debug |
32 | | - CXXSTD: 03 |
33 | | - |
34 | 16 | matrix: |
35 | | - - FLAVOR: Visual Studio 2017 |
| 17 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 |
| 18 | + TOOLSET: msvc-14.0 |
| 19 | + CXXSTD: 14,latest |
| 20 | + ADDRMD: 32,64 |
| 21 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
36 | 22 | TOOLSET: msvc-14.1 |
37 | | - B2_ADDRESS_MODEL: address-model=64,32 |
38 | | - - FLAVOR: Visual Studio 2013 |
39 | | - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 |
40 | | - TOOLSET: msvc-12.0 |
41 | | - - FLAVOR: mingw32 |
42 | | - ARCH: i686 |
43 | | - B2_ADDRESS_MODEL: address-model=32 |
44 | | - SCRIPT: ci\mingw.bat |
45 | | - - FLAVOR: mingw64 |
46 | | - ARCH: x86_64 |
47 | | - B2_ADDRESS_MODEL: address-model=64 |
48 | | - SCRIPT: ci\mingw.bat |
49 | | - - FLAVOR: cygwin (64-bit) |
| 23 | + CXXSTD: 14,17,latest |
| 24 | + ADDRMD: 32,64 |
| 25 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 26 | + TOOLSET: clang-win |
| 27 | + CXXSTD: 14,17,latest |
| 28 | + ADDRMD: 64 |
| 29 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 |
| 30 | + TOOLSET: clang-win |
| 31 | + CXXSTD: 14,17,20,latest |
| 32 | + ADDRMD: 64 |
| 33 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 |
| 34 | + ADDPATH: C:\cygwin\bin; |
| 35 | + TOOLSET: gcc |
| 36 | + CXXSTD: 11,14,1z |
| 37 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 |
50 | 38 | ADDPATH: C:\cygwin64\bin; |
51 | | - B2_ADDRESS_MODEL: address-model=64 |
52 | 39 | TOOLSET: gcc |
53 | | - MAYFAIL: true |
54 | | - - FLAVOR: cygwin (32-bit) |
55 | | - ADDPATH: C:\cygwin\bin; |
56 | | - B2_ADDRESS_MODEL: address-model=32 |
| 40 | + CXXSTD: 11,14,1z |
| 41 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 |
| 42 | + ADDPATH: C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin; |
| 43 | + TOOLSET: gcc |
| 44 | + CXXSTD: 11,14,17,2a |
| 45 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 |
| 46 | + ADDPATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin; |
57 | 47 | TOOLSET: gcc |
58 | | - MAYFAIL: true |
| 48 | + CXXSTD: 11,14,17,2a |
59 | 49 |
|
60 | 50 | install: |
61 | | - - set SELF=program_options |
| 51 | + - set BOOST_BRANCH=develop |
| 52 | + - if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master |
62 | 53 | - cd .. |
63 | | - - git clone -b %APPVEYOR_REPO_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root |
| 54 | + - git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root |
64 | 55 | - cd boost-root |
65 | | - - git submodule update -q --init tools/boostdep |
66 | | - - git submodule update -q --init tools/build |
67 | | - - git submodule update -q --init tools/inspect |
68 | | - - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\%SELF% |
69 | | - - python tools/boostdep/depinst/depinst.py --include example %SELF% |
| 56 | + - git submodule update --init tools/boostdep |
| 57 | + - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\program_options\ |
| 58 | + - python tools/boostdep/depinst/depinst.py program_options |
70 | 59 | - cmd /c bootstrap |
71 | | - - b2 headers |
| 60 | + - b2 -d0 headers |
72 | 61 |
|
73 | 62 | build: off |
74 | 63 |
|
75 | 64 | test_script: |
76 | | - - set SELF=program_options |
77 | 65 | - PATH=%ADDPATH%%PATH% |
78 | | - - IF DEFINED SCRIPT (call libs\%SELF%\%SCRIPT%) ELSE (b2 libs/%SELF% toolset=%TOOLSET% cxxstd=%CXXSTD% %CXXFLAGS% %DEFINES% %B2_ADDRESS_MODEL% %B2_LINK% %B2_THREADING% %B2_VARIANT% -j3) |
| 66 | + - if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD% |
| 67 | + - if not "%ADDRMD%" == "" set ADDRMD=address-model=%ADDRMD% |
| 68 | + - b2 -j3 libs/program_options/test toolset=%TOOLSET% %CXXSTD% %ADDRMD% variant=debug,release |
0 commit comments