@@ -16,6 +16,7 @@ skip_commits:
1616
1717# Build worker image (VM template)
1818image :
19+ - Visual Studio 2015
1920- Visual Studio 2017
2021
2122# set clone depth
@@ -33,18 +34,28 @@ init:
3334 - git --version
3435- python --version
3536- cmake --version
37+ - ps : >-
38+ if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") {
39+ $env:CMAKE_GENERATOR="Visual Studio 14 2015 Win64"
40+ } else {
41+ $env:CMAKE_GENERATOR="Visual Studio 15 2017 Win64"
42+ }
3643
3744# environment variables
3845environment :
3946 CMAKE_PREFIX_PATH : C:\projects\_install;
40- CMAKE_GENERATOR : Visual Studio 15 2017 Win64
4147 BOOST_ROOT : C:\Libraries\boost_1_65_1
4248 PATH : C:\Python36-x64;%PATH%
4349 FREETYPE_DIR : C:\projects\_install\panda3d-thirdparty\win-libs-vc14-x64\freetype
4450
4551# this is how to allow failing jobs in the matrix
4652matrix :
4753 fast_finish : true # set this flag to immediately finish build once one of the jobs fails.
54+ exclude :
55+ - configuration : Debug
56+ image : Visual Studio 2015
57+ - configuration : RelWithDebInfo
58+ image : Visual Studio 2015
4859
4960# scripts that run after cloning repository
5061install :
@@ -124,7 +135,7 @@ deploy: off
124135# on successful build
125136on_success :
126137- ps : >-
127- if (($env:CONFIGURATION -eq "Release") -and ($env:APPVEYOR_REPO_BRANCH -eq "master")) {
138+ if (($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017") -and ($env: CONFIGURATION -eq "Release") -and ($env:APPVEYOR_REPO_BRANCH -eq "master")) {
128139 Start-AppveyorBuild -ApiKey $env:api_key -ProjectSlug 'rpcpp-plugins' -EnvironmentVariables @{
129140 TRIGGER_NAME = $env:APPVEYOR_PROJECT_NAME
130141 TRIGGER_BUILD_VERSION = $env:APPVEYOR_BUILD_VERSION
0 commit comments