@@ -16,6 +16,7 @@ skip_commits:
16
16
17
17
# Build worker image (VM template)
18
18
image :
19
+ - Visual Studio 2015
19
20
- Visual Studio 2017
20
21
21
22
# set clone depth
@@ -33,18 +34,28 @@ init:
33
34
- git --version
34
35
- python --version
35
36
- 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
+ }
36
43
37
44
# environment variables
38
45
environment :
39
46
CMAKE_PREFIX_PATH : C:\projects\_install;
40
- CMAKE_GENERATOR : Visual Studio 15 2017 Win64
41
47
BOOST_ROOT : C:\Libraries\boost_1_65_1
42
48
PATH : C:\Python36-x64;%PATH%
43
49
FREETYPE_DIR : C:\projects\_install\panda3d-thirdparty\win-libs-vc14-x64\freetype
44
50
45
51
# this is how to allow failing jobs in the matrix
46
52
matrix :
47
53
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
48
59
49
60
# scripts that run after cloning repository
50
61
install :
@@ -124,7 +135,7 @@ deploy: off
124
135
# on successful build
125
136
on_success :
126
137
- 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")) {
128
139
Start-AppveyorBuild -ApiKey $env:api_key -ProjectSlug 'rpcpp-plugins' -EnvironmentVariables @{
129
140
TRIGGER_NAME = $env:APPVEYOR_PROJECT_NAME
130
141
TRIGGER_BUILD_VERSION = $env:APPVEYOR_BUILD_VERSION
0 commit comments