-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
34 lines (26 loc) · 1.02 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
init:
- git config --global core.autocrlf true
environment:
MyPSGalleryAPIKey:
secure: kIYsNnhXS69KNHOKGmz+GQn5pfwnTer90p7YUk3sKmkvFEwIpvxDjDAFFBu30EJ4
image:
- Visual Studio 2017
- Ubuntu
for:
-
matrix:
only:
- image: Visual Studio 2017
clone_folder: c:\projects\SE.IntroModule
install:
- ps: Install-Module Pester -Force -SkipPublisherCheck -Scope CurrentUser
build: false
before_test:
- ps: . .\Tests\Utils\DisplayConfigurationInfo.ps1
- ps: . .\Tests\Utils\ImportModule.ps1
# Invoke Pester to run all of the unit tests, then save the results into XML in order to populate the AppVeyor tests section
test_script:
- ps: $res = Invoke-Pester -Path '.\Tests' -OutputFormat NUnitXml -OutputFile .\Tests\TestsResults.xml -PassThru
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\Tests\TestsResults.xml))
- ps: if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."}
- ps: . .\AppVeyorPublish.ps1