Speed up appveyor build

Test more in one run
Factor out CMake builds
Run in parallel
This commit is contained in:
Alexander Grund 2020-04-17 21:43:18 +02:00
parent 6b0a438517
commit 72722e23b3
No known key found for this signature in database
GPG key ID: AA48A0760367A42B
2 changed files with 23 additions and 17 deletions

View file

@ -3,6 +3,7 @@
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# #
# Copyright Mathieu Champlon 2015. # Copyright Mathieu Champlon 2015.
# Copyright Alexander Grund 2020.
skip_branch_with_pr: true skip_branch_with_pr: true
@ -24,14 +25,12 @@ environment:
TOOLSET: msvc-14.1 TOOLSET: msvc-14.1
CXX_STANDARD: 14 CXX_STANDARD: 14
# CXX_STANDARD: 17 # CXX_STANDARD: 17
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: BOOST: 1_60_0
- 32 CMAKE: true
- 64 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
BOOST: 1_71_0
configuration: CMAKE: true
- debug
- release
install: install:
- cd %APPVEYOR_BUILD_FOLDER%\doc - cd %APPVEYOR_BUILD_FOLDER%\doc
@ -51,8 +50,15 @@ build_script:
- call bootstrap.bat - call bootstrap.bat
- cd %APPVEYOR_BUILD_FOLDER%\build - cd %APPVEYOR_BUILD_FOLDER%\build
- if NOT "%CXX_STANDARD%"=="" set CXX_FLAGS=cxxflags=/std:c++%CXX_STANDARD% - if NOT "%CXX_STANDARD%"=="" set CXX_FLAGS=cxxflags=/std:c++%CXX_STANDARD%
- call build.bat --toolset=%TOOLSET% address-model=%PLATFORM% %CXX_FLAGS% --build-type=complete %CONFIGURATION% - set BUILD_ARGS=address-model=32,64 variant=debug,release
# CMake build - call build.bat --toolset=%TOOLSET% %CXX_FLAGS% -j3
for:
- matrix:
only: [CMAKE: true]
install: true
build_script:
- set BOOST_ROOT=C:\Libraries\boost_%BOOST%
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
- mkdir __build - mkdir __build
- cd __build - cd __build

View file

@ -11,7 +11,7 @@ rem error if BOOST_ROOT not set
set BOOST=%BOOST_ROOT% set BOOST=%BOOST_ROOT%
pushd ..\test pushd ..\test
%BOOST%\b2.exe -q %* %BOOST%\b2.exe -q %BUILD_ARGS% %*
popd popd
if errorlevel 1 exit /b %ERRORLEVEL% if errorlevel 1 exit /b %ERRORLEVEL%