forked from boostorg/boost_install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
51 lines (44 loc) · 1.45 KB
/
appveyor.yml
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
# Copyright 2016-2018 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\/.*/
environment:
matrix:
- LIB: system
- LIB: filesystem
- LIB: thread
- LIB: random
- LIB: log
- LIB: python
install:
- set BOOST_BRANCH=feature/cmake-config
- cd ..
- git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init tools/build
- git submodule update --init libs/config
- git submodule update --init tools/boostdep
- git submodule update --init libs/headers
- xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% tools\boost_install\
- git submodule update --init libs/%LIB%
- python tools/boostdep/depinst/depinst.py %LIB%
- cmd /c bootstrap
build: off
test_script:
- b2 -d0 headers
- b2 -d0 --prefix=C:\projects\.local --with-headers install
- b2 --prefix=C:\projects\.local --with-%LIB% install
- cd tools\boost_install\test\%LIB%
- mkdir __build__ && cd __build__
- cmake -DCMAKE_INSTALL_PREFIX=C:\projects\.local -DBoost_USE_STATIC_LIBS=ON ..
- cmake --build . --config Debug
- cmake --build . --config Release
- PATH %PATH%;C:\projects\.local\lib
- cmake --build . --config Debug --target check
- cmake --build . --config Release --target check