1# Copyright 2016-2019 Peter Dimov
2# Copyright 2019 Andrey Semashev
3# Distributed under the Boost Software License, Version 1.0.
4# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
5
6version: 1.0.{build}-{branch}
7
8shallow_clone: true
9
10branches:
11  only:
12    - master
13    - develop
14    - /feature\/.*/
15
16environment:
17  matrix:
18    - TOOLSET: msvc-9.0,msvc-10.0,msvc-11.0
19      ADDRMD: 32
20      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
21    - TOOLSET: msvc-12.0,msvc-14.0
22      ADDRMD: 32,64
23      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
24    - TOOLSET: msvc-14.1
25      CXXSTD: 14,17
26      ADDRMD: 32,64
27      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
28    - TOOLSET: msvc-14.2
29      ADDRMD: 32,64
30      CXXSTD: 14,17
31      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
32    - TOOLSET: clang-win
33      ADDRMD: 32,64
34      CXXSTD: 14,17
35      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
36    - TOOLSET: gcc
37      CXXSTD: 03,11,14,1z
38      ADDPATH: C:\cygwin\bin;
39      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
40    - TOOLSET: gcc
41      CXXSTD: 03,11,14,1z
42      ADDPATH: C:\cygwin64\bin;
43      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
44    - TOOLSET: gcc
45      CXXSTD: 03,11,14,1z
46      ADDPATH: C:\mingw\bin;
47      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
48    - TOOLSET: gcc
49      CXXSTD: 03,11,14,1z
50      ADDPATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;
51      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
52    - TOOLSET: gcc
53      CXXSTD: 03,11,14,1z
54      ADDPATH: C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;
55      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
56
57install:
58  - set GIT_FETCH_JOBS=8
59  - set BOOST_BRANCH=develop
60  - if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master
61  - cd ..
62  - git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
63  - cd boost-root
64  - git submodule init tools/build
65  - git submodule init tools/boost_install
66  - git submodule init libs/headers
67  - git submodule init libs/assert
68  - git submodule init libs/config
69  - git submodule init libs/core
70  - git submodule init libs/io
71  - git submodule init libs/preprocessor
72  - git submodule init libs/static_assert
73  - git submodule init libs/throw_exception
74  - git submodule init libs/type_traits
75  - git submodule init libs/container_hash
76  - git submodule init libs/integer
77  - git submodule init libs/detail
78  - git submodule update --jobs %GIT_FETCH_JOBS%
79  - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\utility\
80  - cmd /c bootstrap
81  - b2 -d0 headers
82
83build: off
84
85test_script:
86  - PATH=%ADDPATH%%PATH%
87  - if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD%
88  - if not "%ADDRMD%" == "" set ADDRMD=address-model=%ADDRMD%
89  - b2 -j %NUMBER_OF_PROCESSORS% libs/utility/test toolset=%TOOLSET% %CXXSTD% %ADDRMD% variant=debug,release
90