forked from majkinetor/au
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
40 lines (31 loc) · 1.04 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
39
version: '{build}'
image: WMF 5
environment:
mail_user: [email protected]
install:
- ps: 'Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version'
- ps: $PSVersionTable
- ps: ./setup.ps1
build_script:
- ps: |
$version = ./build.ps1
Update-AppveyorBuild -Version $version
test_script:
- ps: |
$res = ./test.ps1
"Uploading test results"
$url = "https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)"
(New-Object 'System.Net.WebClient').UploadFile($url, (Resolve-Path _build/*/TestResults.xml))
if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed." }
#on_finish:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
artifacts:
- path: _build\*\*.nupkg
- path: _build\*\*.7z
- path: _build\*\*.xml
notifications:
- provider: Email
to: $(mail_user)
on_build_success: false
on_build_failure: true
on_build_status_changed: true