Skip to content

Commit e8bd4cf

Browse files
author
Kapil Borle
committed
Modify AppVeyor configuration to use PlatyPS
1 parent 0f43724 commit e8bd4cf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

appveyor.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ clone_folder: c:\projects\psscriptanalyzer
99
# Install Pester
1010
install:
1111
- cinst -y pester --version 3.4.0
12-
13-
# Build PSScriptAnalyzer using msbuild
14-
# build: true
12+
- ps: nuget install platyPS -Version 0.5.0 -source https://www.powershellgallery.com/api/v2 -outputDirectory "$Env:ProgramFiles\WindowsPowerShell\Modules\." -ExcludeVersion
1513

1614
build_script:
1715
- ps: |
@@ -21,6 +19,7 @@ build_script:
2119
$buildConfig = 'PSV3 Release'
2220
}
2321
& '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'
22+
C:\projects\psscriptanalyzer\build.ps1 -BuildDocs
2423
2524
# branches to build
2625
branches:
@@ -33,7 +32,7 @@ branches:
3332
test_script:
3433
- SET PATH=c:\Program Files\WindowsPowerShell\Modules\;%PATH%;
3534
- ps: |
36-
copy "C:\projects\psscriptanalyzer\PSScriptAnalyzer" "$Env:ProgramFiles\WindowsPowerShell\Modules\" -Recurse -Force
35+
copy "C:\projects\psscriptanalyzer\out\PSScriptAnalyzer" "$Env:ProgramFiles\WindowsPowerShell\Modules\" -Recurse -Force
3736
$engineTestResultsFile = ".\EngineTestResults.xml"
3837
$ruleTestResultsFile = ".\RuleTestResults.xml"
3938
$engineTestResults = Invoke-Pester -Script "C:\projects\psscriptanalyzer\Tests\Engine" -OutputFormat NUnitXml -OutputFile $engineTestResultsFile -PassThru

0 commit comments

Comments
 (0)