forked from shimat/opencvsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
107 lines (93 loc) · 4.52 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '4.0.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'))
Write-Host "APPVEYOR = "$env:APPVEYOR
Write-Host "CI = "$env:CI
Write-Host "APPVEYOR_API_URL = "$env:APPVEYOR_API_URL
Write-Host "APPVEYOR_ACCOUNT_NAME = "$env:APPVEYOR_ACCOUNT_NAME
Write-Host "APPVEYOR_PROJECT_ID = "$env:APPVEYOR_PROJECT_ID
Write-Host "APPVEYOR_PROJECT_NAME = "$env:APPVEYOR_PROJECT_NAME
Write-Host "APPVEYOR_PROJECT_SLUG = "$env:APPVEYOR_PROJECT_SLUG
Write-Host "APPVEYOR_BUILD_FOLDER = "$env:APPVEYOR_BUILD_FOLDER
Write-Host "APPVEYOR_BUILD_ID = "$env:APPVEYOR_BUILD_ID
Write-Host "APPVEYOR_BUILD_NUMBER = "$env:APPVEYOR_BUILD_NUMBER
Write-Host "APPVEYOR_BUILD_VERSION = "$env:APPVEYOR_BUILD_VERSION
Write-Host "APPVEYOR_BUILD_WORKER_IMAGE = "$env:APPVEYOR_BUILD_WORKER_IMAGE
Write-Host "APPVEYOR_PULL_REQUEST_NUMBER = "$env:APPVEYOR_PULL_REQUEST_NUMBER
Write-Host "APPVEYOR_PULL_REQUEST_TITLE = "$env:APPVEYOR_PULL_REQUEST_TITLE
Write-Host "APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME = "$env:APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME
Write-Host "APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH = "$env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH
Write-Host "APPVEYOR_PULL_REQUEST_HEAD_COMMIT = "$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT
Write-Host "APPVEYOR_JOB_ID = "$env:APPVEYOR_JOB_ID
Write-Host "APPVEYOR_JOB_NAME = "$env:APPVEYOR_JOB_NAME
Write-Host "APPVEYOR_JOB_NUMBER = "$env:APPVEYOR_JOB_NUMBER
Write-Host "APPVEYOR_REPO_PROVIDER = "$env:APPVEYOR_REPO_PROVIDER
Write-Host "APPVEYOR_REPO_SCM = "$env:APPVEYOR_REPO_SCM
Write-Host "APPVEYOR_REPO_NAME = "$env:APPVEYOR_REPO_NAME
Write-Host "APPVEYOR_REPO_BRANCH = "$env:APPVEYOR_REPO_BRANCH
Write-Host "APPVEYOR_REPO_TAG = "$env:APPVEYOR_REPO_TAG
Write-Host "APPVEYOR_REPO_TAG_NAME = "$env:APPVEYOR_REPO_TAG_NAME
Write-Host "APPVEYOR_REPO_COMMIT = "$env:APPVEYOR_REPO_COMMIT
Write-Host "APPVEYOR_REPO_COMMIT_AUTHOR = "$env:APPVEYOR_REPO_COMMIT_AUTHOR
Write-Host "APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL = "$env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL
Write-Host "APPVEYOR_REPO_COMMIT_TIMESTAMP = "$env:APPVEYOR_REPO_COMMIT_TIMESTAMP
Write-Host "APPVEYOR_REPO_COMMIT_MESSAGE = "$env:APPVEYOR_REPO_COMMIT_MESSAGE
Write-Host "APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED = "$env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
Write-Host "APPVEYOR_SCHEDULED_BUILD = "$env:APPVEYOR_SCHEDULED_BUILD
Write-Host "PLATFORM = "$env:PLATFORM
Write-Host "CONFIGURATION = "$env:CONFIGURATION
#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
cache:
- c:\tools\vcpkg\installed\
#- c:\tools\vcpkg\installed\ -> appveyor.yml
- packages -> **\packages.config
install:
# build tesseract
- cd c:\tools\vcpkg
- vcpkg integrate install
- vcpkg install tesseract:x64-windows-static
- vcpkg install tesseract:x86-windows-static
- cd %APPVEYOR_BUILD_FOLDER%
- vcpkg list
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:
- dotnet test ./test/OpenCvSharp.Tests/OpenCvSharp.Tests.csproj --no-build
artifacts:
- path: artifacts\**\*.*
deploy:
- provider: NuGet # appveyor
server: https://ci.appveyor.com/nuget/shimat
api_key:
secure: PW0F7tbGr+QLuLPUGy+32pNtMZUJeqjyikz9nKlpALA=
skip_symbols: true
artifact: /.*\.nupkg/
#- provider: NuGet # nuget.org
# api_key:
# secure: qea/3lnas374qyS4Xw9t5Z5jBKsVsBPGsY938QHgJ2IQyrQmug0qPKDU7tll/QkJ
# skip_symbols: true
# artifact: /.*\.nupkg/