Skip to content

Commit b82733f

Browse files
author
Kapil Borle
committed
Add build matrix and script to appveyor
1 parent 6c8d638 commit b82733f

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

PSScriptAnalyzer.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.21005.1
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25123.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScriptAnalyzerEngine", "Engine\ScriptAnalyzerEngine.csproj", "{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}"
77
EndProject

appveyor.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Image with WMF5.0 RTM
21
os:
32
- "WMF 5"
43
- "Visual Studio 2015"
@@ -11,7 +10,16 @@ install:
1110
- cinst -y pester --version 3.4.0
1211

1312
# Build PSScriptAnalyzer using msbuild
14-
build: true
13+
# build: true
14+
15+
build_script:
16+
- ps: |
17+
$buildConfig = 'Release'
18+
if ($PSVersionTable.PSVersion -lt [Version]'5.0')
19+
{
20+
$buildConfig = 'PSV3 Release'
21+
}
22+
& 'C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe' 'C:\projects\psscriptanalyzer\PSScriptAnalyzer.sln' /P:Configuration=$buildConfig /logger:'C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll'
1523
1624
# branches to build
1725
branches:
@@ -48,4 +56,4 @@ on_finish:
4856
@(
4957
# You can add other artifacts here
5058
(ls $zipFile)
51-
) | % { Push-AppveyorArtifact $_.FullName }
59+
) | % { Push-AppveyorArtifact $_.FullName }

0 commit comments

Comments
 (0)