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