-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
34 lines (28 loc) · 971 Bytes
/
.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
version: 0.1.{build}.0
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2019
clone_depth: 1
clone_folder: c:\projects\gfoidl
environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
build_script:
- cmd: >-
dotnet restore
dotnet build -c Release --no-restore
dotnet pack -o c:\projects\gfoidl\NuGet-Packed --no-build -c Release source\gfoidl.Stochastics
test_script:
- ps: >-
dotnet test -c Release --no-build --logger "trx;LogFileName=testresult.xml" tests\gfoidl.Stochastics.Tests\gfoidl.Stochastics.Tests.csproj
$testExit = $lastExitCode
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", "C:\projects\gfoidl\tests\gfoidl.Stochastics.Tests\TestResults\testresult.xml")
if ($testExit) {
exit 1;
}
artifacts:
- path: NuGet-Packed\*.nupkg
name: NuGet
on_finish:
- cmd: dir .\NuGet-Packed