mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Speed up appveyor build
Test more in one run Factor out CMake builds Run in parallel
This commit is contained in:
parent
6b0a438517
commit
72722e23b3
2 changed files with 23 additions and 17 deletions
26
appveyor.yml
26
appveyor.yml
|
|
@ -3,6 +3,7 @@
|
|||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
#
|
||||
# Copyright Mathieu Champlon 2015.
|
||||
# Copyright Alexander Grund 2020.
|
||||
|
||||
skip_branch_with_pr: true
|
||||
|
||||
|
|
@ -24,14 +25,12 @@ environment:
|
|||
TOOLSET: msvc-14.1
|
||||
CXX_STANDARD: 14
|
||||
# CXX_STANDARD: 17
|
||||
|
||||
platform:
|
||||
- 32
|
||||
- 64
|
||||
|
||||
configuration:
|
||||
- debug
|
||||
- release
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||
BOOST: 1_60_0
|
||||
CMAKE: true
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
BOOST: 1_71_0
|
||||
CMAKE: true
|
||||
|
||||
install:
|
||||
- cd %APPVEYOR_BUILD_FOLDER%\doc
|
||||
|
|
@ -51,8 +50,15 @@ build_script:
|
|||
- call bootstrap.bat
|
||||
- cd %APPVEYOR_BUILD_FOLDER%\build
|
||||
- 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%
|
||||
# CMake build
|
||||
- set BUILD_ARGS=address-model=32,64 variant=debug,release
|
||||
- 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%
|
||||
- mkdir __build
|
||||
- cd __build
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ rem error if BOOST_ROOT not set
|
|||
set BOOST=%BOOST_ROOT%
|
||||
|
||||
pushd ..\test
|
||||
%BOOST%\b2.exe -q %*
|
||||
%BOOST%\b2.exe -q %BUILD_ARGS% %*
|
||||
popd
|
||||
if errorlevel 1 exit /b %ERRORLEVEL%
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue