• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016, 2017 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 2013
18      TOOLSET: msvc-12.0
19    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
20      TOOLSET: msvc-14.0
21    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
22      TOOLSET: msvc-14.1
23
24install:
25  - set BOOST_BRANCH=develop
26  - if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master
27  - cd ..
28  - git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
29  - cd boost-root
30  - git submodule update --init tools/build
31  - git submodule update --init libs/config
32  - git submodule update --init tools/boostdep
33  - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\ratio\
34  - python tools/boostdep/depinst/depinst.py ratio
35  - cmd /c bootstrap
36  - b2 headers
37
38build: off
39
40test_script:
41  - b2 libs/ratio/test toolset=%TOOLSET%
42  - mkdir __build__
43  - cd __build__
44  - cmake -DBOOST_RATIO_INCLUDE_TESTS=ON ../libs/ratio/test/test_cmake
45  - cmake --build .
46  - ctest .
47