-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathappveyor.yml
More file actions
92 lines (81 loc) · 4.15 KB
/
appveyor.yml
File metadata and controls
92 lines (81 loc) · 4.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright 2016-2022 Peter Dimov
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
version: 1.0.{build}-{branch}
shallow_clone: true
branches:
only:
- master
- develop
- /feature\/.*/
image: Visual Studio 2019
environment:
matrix:
- LIB: filesystem
TOOLSET: clang-win
GENERATOR: Ninja
CMAKE_CXX_COMPILER: clang-cl
CMAKE_BUILD_TYPE: RelWithDebInfo
SETUP_SCRIPT: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
- LIB: filesystem
GENERATOR: MinGW Makefiles
CMAKE_BUILD_TYPE: Debug
PATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
TOOLSET: gcc
- LIB: filesystem
GENERATOR: MinGW Makefiles
CMAKE_BUILD_TYPE: RelWithDebInfo
PATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
TOOLSET: gcc
- LIB: log
TOOLSET: msvc
install:
- set BOOST_BRANCH=develop
- if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master
- cd ..
- git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init --jobs 3 tools/boostdep libs/assert libs/config libs/core libs/%LIB%
- python tools/boostdep/depinst/depinst.py -X test -g "--jobs 3" %LIB%
- rd /s/q tools\boost_install
- xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% tools\boost_install\
- cmd /c bootstrap
- set USER_CONFIG=%HOMEDRIVE%%HOMEPATH%\user-config.jam
- |-
echo using python : 2.7 : C:/Python27 ; >> %USER_CONFIG%
- |-
echo using python : 3.6 : C:/Python36 ; >> %USER_CONFIG%
- |-
echo using python : 3.7 : C:/Python37 ; >> %USER_CONFIG%
- b2 -d0 headers
build: off
test_script:
- if not "%LAYOUT%" == "" SET LAYOUT=--layout=%LAYOUT%
- if not "%TOOLSET%" == "" SET TOOLSET=toolset=%TOOLSET%
- if not "%PYTHON%" == "" SET PYTHON=python=%PYTHON%
- if not "%B2_LINK%" == "" SET B2_LINK=link=%B2_LINK%
- set ZLIB_SOURCE=%CD%\tools\boost_install\test\iostreams\zlib-1.2.11
- set BZIP2_SOURCE=%CD%\tools\boost_install\test\iostreams\bzip2-1.0.8
- if "%STAGE%" == "" set B2_INSTALL=--prefix=C:\projects\.local install
- if "%STAGE%" == "" b2 -j3 -d0 --with-headers %TOOLSET% %LAYOUT% %PYTHON% %B2_LINK% %B2_INSTALL%
- b2 -j3 --with-%LIB% %TOOLSET% %LAYOUT% %PYTHON% %B2_LINK% %B2_INSTALL%
- cd tools\boost_install\test\%LIB%
- mkdir __build__ && cd __build__
- if NOT "%SETUP_SCRIPT%" == "" CALL "%SETUP_SCRIPT%"
- if "%STAGE%" == "" SET CMAKE_INSTALL=-DCMAKE_INSTALL_PREFIX=C:\projects\.local
- if NOT "%STAGE%" == "" SET CMAKE_INSTALL=-DUSE_STAGED_BOOST=1
- if NOT "%USE_PYTHON_VERSION%" == "" SET USE_PYTHON_VERSION=-DUSE_PYTHON_VERSION=%USE_PYTHON_VERSION%
- if NOT "%USE_STATIC_LIBS%" == "" SET USE_STATIC_LIBS=-DBoost_USE_STATIC_LIBS=%USE_STATIC_LIBS%
- if NOT "%BUILD_SHARED_LIBS%" == "" SET BUILD_SHARED_LIBS=-DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS%
- if NOT "%GENERATOR%" == "" SET GENERATOR=-G "%GENERATOR%"
- if NOT "%GENERATOR_TOOLSET%" == "" SET GENERATOR_TOOLSET=-T "%GENERATOR_TOOLSET%"
- if NOT "%CMAKE_CXX_COMPILER%" == "" SET CMAKE_CXX_COMPILER=-DCMAKE_CXX_COMPILER="%CMAKE_CXX_COMPILER%"
- if NOT "%CMAKE_BUILD_TYPE%" == "" SET CMAKE_BUILD_TYPE=-DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE%
- PATH %PATH:C:\Program Files\Git\usr\bin;=%
- cmake %GENERATOR% %GENERATOR_TOOLSET% -DBoost_VERBOSE=ON %USE_PYTHON_VERSION% %USE_STATIC_LIBS% %BUILD_SHARED_LIBS% %CMAKE_CXX_COMPILER% %CMAKE_BUILD_TYPE% %CMAKE_INSTALL% ..
- PATH %PATH%;C:\projects\.local\bin;C:\projects\boost-root\stage\lib
- if NOT "%CMAKE_BUILD_TYPE%" == "" cmake --build . && cmake --build . --target check
- if "%CMAKE_BUILD_TYPE%" == "" cmake --build . --config Debug && cmake --build . --config Debug --target check
- if "%CMAKE_BUILD_TYPE%" == "" cmake --build . --config Release && cmake --build . --config Release --target check
- if "%CMAKE_BUILD_TYPE%" == "" cmake --build . --config MinSizeRel && cmake --build . --config MinSizeRel --target check
- if "%CMAKE_BUILD_TYPE%" == "" cmake --build . --config RelWithDebInfo && cmake --build . --config RelWithDebInfo --target check