-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
42 lines (35 loc) · 1.13 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
image:
- Visual Studio 2017
version: 1.6.9.{build}
configuration: Release
skip_branch_with_pr: true
install:
- git submodule update --init --recursive
assembly_info:
patch: true
file: AssemblyInfoCommon.cs;
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- ps: |
dotnet build PT.SourceStats.sln -c Release
if ($isWindows) {
dotnet publish PT.SourceStats.Cli/PT.SourceStats.Cli.csproj -c Release -o ../bin/net472 -f net472
}
build:
project: PT.SourceStats.sln
test_script:
- ps: |
cd PT.SourceStats.Tests/bin/Release/netcoreapp2.0
dotnet vstest PT.SourceStats.Tests.dll --logger:nunit
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$env:APPVEYOR_JOB_ID", (Resolve-Path ./TestResults/TestResults.xml))
cd ../../../..
after_test:
- ps: |
if ($isWindows) {
cd bin/net472
7z a PT.SourceStats-net472-$env:APPVEYOR_BUILD_VERSION.zip *.exe *.dll *.config *.json runtimes
Push-AppveyorArtifact PT.SourceStats-net472-$env:APPVEYOR_BUILD_VERSION.zip
}