forked from shimat/opencvsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
56 lines (44 loc) · 1.92 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
version: '3.2.0-{build}'
init:
- ps: |
$version = $env:APPVEYOR_BUILD_VERSION.Split('-')[0]
$date = Get-Date -Format "yyyyMMdd"
Update-AppveyorBuild -Version "$version.$date-beta-$env:APPVEYOR_BUILD_NUMBER"
Write-Host $env:APPVEYOR_BUILD_VERSION
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
image: Visual Studio 2017
configuration: Release
before_build:
- git submodule update --init --recursive
- nuget restore
- dotnet restore
build_script:
- msbuild OpenCvSharp.sln /t:build /p:configuration=%CONFIGURATION% /p:platform=x64
- msbuild OpenCvSharp.sln /t:build /p:configuration=%CONFIGURATION% /p:platform=x86
after_build:
- ps: |
(ls $env:APPVEYOR_BUILD_FOLDER -Recurse).Where{ $_.Extension -eq ".nuspec" }.ForEach{
[xml]$xml = Get-Content $_.FullName
$xml.package.metadata.version = $env:APPVEYOR_BUILD_VERSION
$xml.Save($_.FullName)
}
nuget pack nuget/OpenCvSharp3-AnyCPU.nuspec -OutputDirectory artifacts
nuget pack nuget/OpenCvSharp3-WithoutDll.nuspec -OutputDirectory artifacts
test_script:
#- nunit3-console.exe ./test/OpenCvSharp.Tests/bin/Release/net461/OpenCvSharp.Tests.dll --result=myresults.xml;format=AppVeyor
# https://www.appveyor.com/docs/running-tests/#nunit-3x
#- xunit.console ./test/OpenCvSharp.Tests/bin/Release/net461/OpenCvSharp.Tests.dll /appveyor
- dotnet test ./test/OpenCvSharp.Tests/OpenCvSharp.Tests.csproj --no-build
artifacts:
- path: artifacts\**\*.*
deploy:
- provider: NuGet
server: https://ci.appveyor.com/nuget/shimat
api_key:
secure: PW0F7tbGr+QLuLPUGy+32pNtMZUJeqjyikz9nKlpALA=
skip_symbols: true
artifact: /.*\.nupkg/