-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
24 lines (20 loc) · 775 Bytes
/
appveyor.yml
File metadata and controls
24 lines (20 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: '1.0.{build}'
image: Visual Studio 2017
clone_depth: 10
skip_tags: true
# branches:
# only:
# - master
# - develop
install:
- ps: |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | Out-Null
Install-Module Pester -Scope CurrentUser -SkipPublisherCheck -Force | Out-Null
Install-Module PSScriptAnalyzer -Scope CurrentUser -Force | Out-Null
build: off
test_script:
- ps: |
Invoke-Pester -Script C:\projects\scriptanalyzer-practiceandstyle\test* -OutputFile .\nunit-results.xml -OutputFormat NUnitXML
# upload results to AppVeyor
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\nunit-results.xml))