Skip to content

Commit 98f6d04

Browse files
committed
Use matrix in appveyor
1 parent 9c438c5 commit 98f6d04

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.appveyor.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,12 @@ image:
2222
# set clone depth
2323
clone_depth: 1
2424

25-
# clone directory
26-
clone_folder: c:\projects\render_pipeline_cpp
27-
2825
# scripts that are called at very beginning, before repo cloning
2926
init:
3027
- ps: >-
3128
if (Test-Path env:TRIGGER_NAME) {
3229
Update-AppveyorBuild -Message "Build by $env:TRIGGER_BUILD_VERSION in $env:TRIGGER_NAME"
3330
}
34-
- ps: >-
35-
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") {
36-
$env:CMAKE_GENERATOR="Visual Studio 14 2015 Win64"
37-
} else {
38-
$env:CMAKE_GENERATOR="Visual Studio 15 2017 Win64"
39-
}
4031
# checkout vcpkg v0.0.111
4132
- ps: pushd C:\tools\vcpkg
4233
- git pull --quiet
@@ -143,3 +134,24 @@ on_success:
143134
TRIGGER_BUILD_VERSION = $env:APPVEYOR_BUILD_VERSION
144135
}
145136
}
137+
138+
#---------------------------------#
139+
# specializing matrix #
140+
#---------------------------------#
141+
142+
for:
143+
-
144+
matrix:
145+
only:
146+
- image: Visual Studio 2015
147+
148+
environment:
149+
CMAKE_GENERATOR: Visual Studio 14 2015 Win64
150+
151+
-
152+
matrix:
153+
only:
154+
- image: Visual Studio 2017
155+
156+
environment:
157+
CMAKE_GENERATOR: Visual Studio 15 2017 Win64

0 commit comments

Comments
 (0)