forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.core.yml
80 lines (63 loc) · 1.84 KB
/
appveyor.core.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
configuration: Release
environment:
packageVersion: 1.7.7
version: $(packageVersion).{build}
cache:
- packages -> **\packages.config
- '%USERPROFILE%\.nuget\packages -> **\project.json'
assembly_info:
patch: false
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
services:
- mssql2012sp1
- mysql
- postgresql
before_build:
- cmd: dotnet restore
build:
project: linq2db.core.sln
verbosity: minimal
after_build:
- ps: |
if ($env:APPVEYOR_REPO_BRANCH -eq "release")
{
dotnet pack --no-build Source/project.json -c=Release
}
else
{
dotnet pack --no-build Source/project.json --version-suffix="rc$env:APPVEYOR_BUILD_NUMBER" -c=Release
}
before_test:
- ps: |
cd $env:appveyor_build_folder
. ".\Av-InitDatabases.ps1"
test_script:
- ps: |
dotnet test tests\linq -c Release -f netcoreapp1.0
$test1res = $LASTEXITCODE
# upload results to AppVeyor
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit3/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResult.xml))
Push-AppveyorArtifact (Resolve-Path .\TestResult.xml)
# try nunit3
# nunit3-console.exe (Resolve-Path Tests\Linq\bin\Release\net40\win7-x64\linq2db.Tests.dll) --x86
# nunit3-console.exe (Resolve-Path Tests\Linq\bin\Release\net45\win7-x64\linq2db.Tests.dll) --x86
IF ($test1res -ne 0) { exit -1 }
artifacts:
- path: Source\**\*.nupkg
deploy:
- provider: NuGet
server: https://www.myget.org/F/linq2db/api/v2
api_key:
secure: LDw0jeA1Yo3R4/TKv2kmlgJR8dTT6Wun2MONq3uDvtVQJG4LOU9LjvVTAc7IgRfm
skip_symbols: true
on:
branch: master
- provider: NuGet
api_key:
secure: oTYw2IwTnz4qMD8c/MR/6mo+Nx3wa5Pp8MYfsKBCKCVuU6QCHlj+6QMXpnQses8G
on:
branch: release