File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ clone_folder: c:\projects\psscriptanalyzer
9
9
# Install Pester
10
10
install :
11
11
- 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
15
13
16
14
build_script :
17
15
- ps : |
@@ -21,6 +19,7 @@ build_script:
21
19
$buildConfig = 'PSV3 Release'
22
20
}
23
21
& '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
24
23
25
24
# branches to build
26
25
branches :
@@ -33,7 +32,7 @@ branches:
33
32
test_script :
34
33
- SET PATH=c:\Program Files\WindowsPowerShell\Modules\;%PATH%;
35
34
- 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
37
36
$engineTestResultsFile = ".\EngineTestResults.xml"
38
37
$ruleTestResultsFile = ".\RuleTestResults.xml"
39
38
$engineTestResults = Invoke-Pester -Script "C:\projects\psscriptanalyzer\Tests\Engine" -OutputFormat NUnitXml -OutputFile $engineTestResultsFile -PassThru
You can’t perform that action at this time.
0 commit comments