forked from fsprojects/Paket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (55 loc) · 1.81 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
53
54
55
56
57
58
59
60
61
image: Visual Studio 2017
init:
- git config --global core.autocrlf input
install:
- ps: Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile "${env:TEMP}\dotnet-install.ps1"
- ps: $sdkVersionFromGlobalJson = (Get-Content -Raw -Path 'global.json' | Out-String | ConvertFrom-Json).sdk.version
- ps: '& "${env:TEMP}\dotnet-install.ps1" -Version $sdkVersionFromGlobalJson'
build_script:
- cmd: build.cmd BuildPackage
test: off
version: 0.0.1.{build}
artifacts:
- path: bin
name: bin
- path: bin_bootstrapper
name: bin_bootstrapper
- path: 'temp\*.nupkg'
type: NuGetPackage
name: nupkgs
- path: 'tests_result\**\*.trx'
name: TestResults
type: zip
nuget:
account_feed: false
project_feed: true
environment:
matrix:
# run .net integration tests
- SkipIntegrationTestsNetCore: true
PAKET_TESTSUITE_FLAKYTESTS: false
# run .net core integration tests
- SkipIntegrationTestsNet: true
PAKET_TESTSUITE_FLAKYTESTS: false
# just flaky tests
- PAKET_TESTSUITE_FLAKYTESTS: true
matrix:
allow_failures:
- PAKET_TESTSUITE_FLAKYTESTS: true
on_finish:
- ps: >-
$wc = New-Object 'System.Net.WebClient';
$testResults = @(
'.\tests_result\net\Paket.Tests\TestResult.trx'
'.\tests_result\net\Paket.IntegrationTests\TestResult.trx'
'.\tests_result\net\Paket.Bootstrapper.Tests\TestResult.trx'
'.\tests_result\netcore\Paket.Tests\TestResult.trx'
'.\tests_result\netcore\Paket.IntegrationTests\TestResult.trx'
'.\tests_result\netcore\Paket.Bootstrapper.Tests\TestResult.trx'
)
- ps: >-
Foreach ($path in $testResults) {
If (Test-Path $path) {
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $path))
}
}