forked from PowerShell/SHiPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
52 lines (37 loc) · 1.44 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
40
41
42
43
44
45
46
47
48
49
50
51
52
version: 1.1.3.{build}
environment:
# Avoid expensive initialization of dotnet cli, see: http://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PowerShellEdition: Desktop
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PowerShellEdition: Core
configuration: Release
platform: Any CPU
# clone directory
clone_folder: c:\projects\ships
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Install Pester
install:
- cinst -y pester
# to run your custom scripts instead of automatic MSBuild
build_script:
- git submodule update --init
- ps: cd .\src; .\bootstrap.ps1; .\build.ps1 Release
# Run Pester tests and store the results
test_script:
- ps: |
Import-Module c:\projects\ships\tools\setup.psm1
Invoke-SHiPSTest
# Upload the project along with TestResults as a zip archive
on_finish:
- ps: |
@(
# You can add other artifacts here
"C:\projects\ships\src\out\SHiPS.zip"
) | % { Push-AppveyorArtifact $_ }
Get-ChildItem -Path c:\projects\ships\test\ -Filter 'TestResults*.xml' -File | ForEach-Object {
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", "$($_.FullName)")
}