1# Copyright 2016-2019 Peter Dimov
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    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
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 2017
24      TOOLSET: msvc-14.1,clang-win
25      CXXSTD: 14,17
26      ADDRMD: 32,64
27    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
28      TOOLSET: msvc-14.2
29      CXXSTD: 14,17
30      ADDRMD: 32,64
31    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
32      ADDPATH: C:\cygwin\bin;
33      TOOLSET: gcc
34      CXXSTD: 03,11,14,1z
35    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
36      ADDPATH: C:\cygwin64\bin;
37      TOOLSET: gcc
38      CXXSTD: 03,11,14,1z
39    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
40      ADDPATH: C:\mingw\bin;
41      TOOLSET: gcc
42      CXXSTD: 03,11,14,1z
43    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
44      ADDPATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;
45      TOOLSET: gcc
46      CXXSTD: 03,11,14,1z
47
48install:
49  - set BOOST_BRANCH=develop
50  - if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master
51  - cd ..
52  - git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
53  - cd boost-root
54  - git submodule update --init tools/boostdep
55  - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\endian\
56  - python tools/boostdep/depinst/depinst.py endian
57  - cmd /c bootstrap
58  - b2 -d0 headers
59
60build: off
61
62test_script:
63  - PATH=%ADDPATH%%PATH%
64  - if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD%
65  - if not "%ADDRMD%" == "" set ADDRMD=address-model=%ADDRMD%
66  - b2 -j3 libs/endian/test toolset=%TOOLSET% %CXXSTD% %ADDRMD% variant=debug,release
67