forked from WormieCorp/Wormies-AU-Helpers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
38 lines (36 loc) · 1.12 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
35
36
37
38
version: '{build}'
image: 'Visual Studio 2017'
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
init:
- ps: $PSVersionTable
install:
- ps: |
cinst powershell -n --no-progress
cinst gitversion.portable gitreleasemanager.portable codecov au --no-progress
Install-Module Pester -Scope CurrentUser -Force -SkipPublisherCheck
$uri = "https://raw.githubusercontent.com/PowerShell/DscResource.Tests/491688867dc53894b92ca53520a18d145deb7760/DscResource.CodeCoverage/CodeCovIo.psm1"
Invoke-WebRequest -Uri $uri -OutFile $env:USERPROFILE\CodeCovIo.psm1
- ps: Get-Module Pester -ListAvailable | select -First 1 | % { $_.Version.ToString() }
build_script:
- ps: |
.\build -BuildDocs
test_script:
- ps: |
Import-Module $env:USERPROFILE\CodeCovIo.psm1
.\test -CodeCoverage
artifacts:
- path: '.build\**\*.nupkg'
- path: '.build\**\*.7z'
notifications:
- provider: GitHubPullRequest
on_build_success: false
on_build_failure: true
on_build_status_changed: true
on_success:
- cmd: codecov -f "coverage.json"
- ps: .\publish.ps1
cache:
- docs/input/docs/functions
- docs/tools->docs/build.ps1