Skip to content

Commit bedc955

Browse files
author
JustinGrote
committed
Update CI config
1 parent 8e3fff0 commit bedc955

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

Tests/00-PowershellModule.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#requires -module BuildHelpers
2-
if (-not import-module BuildHelpers -PassThru -erroraction silentlycontinue) {
2+
if (-not (import-module BuildHelpers -PassThru -erroraction silentlycontinue)) {
33
install-module buildhelpers -scope currentuser -erroraction stop -force
44
import-module BuildHelpers -erroraction stop
55
}

appveyor.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ environment:
66
NuGetApiKey:
77
secure: HncD30pn+cWRepdP28pyB1l4BNg3x3MdvcNV8EysOhQ5kBFMHVyXiQM0whuUW78P
88

9-
image: Visual Studio 2015
9+
image:
10+
- Visual Studio 2015
11+
- Visual Studio 2017
1012
install:
11-
- ps: Install-Module -Name Pester,PSScriptAnalyzer,BuildHelpers,InvokeBuild -Confirm:$false -Force -ErrorAction Stop -SkipPublisherCheck
13+
- ps: Install-Module -Name InvokeBuild -Confirm:$false -ErrorAction Stop -Force
1214

1315
# Skip on updates to the readme.
1416
# We can force this by adding [skip ci] or [ci skip] anywhere in commit message
@@ -18,12 +20,12 @@ skip_commits:
1820
#Kick off the CI/CD pipeline. We do test and build in the same script
1921
#To be portable to non-Appveyor builds
2022
#We run it at the test step so that we can upload test results back to the system.
21-
build: false
23+
build_script:
24+
- ps: Invoke-Build Build
2225
test_script:
23-
- ps: Invoke-Build
26+
- ps: Invoke-Build Test
2427

2528
deploy: false
2629

2730
on_finish:
28-
#If "AppveyorRDPDebug" is in the commit message, open an RDP session to investigate after build.
2931
- ps: if ($env:APPVEYOR_REPO_COMMIT_MESSAGE -match 'AppveyorRDPDebug') {$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))}

0 commit comments

Comments
 (0)