forked from coenm/ImageHash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
70 lines (58 loc) · 2.09 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
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
github_oauth_token:
secure: H1vW5fnfAOt5/c5f1qnaatUjFVAPc2oZnxDBFutJZL58LxAyJNRLtfIBrcHnSg8y
myget_token:
secure: t8JtzPkpHidqOii+bLuSiOKgqzsdoSCBI3Sc/Uy6D9jWfxNd7zUUhhTgGHj5rpV9
version: 1.0.{build}
image: Visual Studio 2017
configuration: Debug
dotnet_csproj:
patch: true
file: '**\*.csproj'
# version: '%GitVersion_FullSemVer%'
version: '%GitVersion_NuGetVersion%'
# package_version: '%GitVersion_LegacySemVerPadded%'
package_version: '%GitVersion_NuGetVersion%'
informational_version: '%GitVersion_InformationalVersion%'
install:
#- choco install gitversion.portable -pre -y
- choco install gitversion.portable --version 4.0.1-beta1-29 --pre -y
- choco install opencover.portable -y
#
# install latest codecov (choco is behind of nuget)
- nuget install Codecov -OutputDirectory C:\NuGetTools\
- echo APPVEYOR_REPO_BRANCH %APPVEYOR_REPO_BRANCH%
- echo APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH %APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH%
- cmd: IF [%APPVEYOR_PULL_REQUEST_NUMBER%]==[] (
C:\ProgramData\chocolatey\lib\gitversion.portable\tools\gitversion.exe /output buildserver /b %APPVEYOR_REPO_BRANCH% /c %APPVEYOR_REPO_COMMIT%
) ELSE (
C:\ProgramData\chocolatey\lib\gitversion.portable\tools\gitversion.exe /output buildserver /c %APPVEYOR_REPO_COMMIT%
)
- git submodule update --init --recursive
before_build:
- dotnet sln ImageHash.sln remove demo/Demo.csproj
- dotnet restore ImageHash.sln
build_script:
- dotnet build ImageHash.sln
test_script:
- ps: .scripts\TestCoverage.ps1
after_test:
- ps: .scripts\pack.ps1
- ps: .scripts\Codecov.ps1
artifacts:
- path: '**\*.nupkg'
name: NuGet Packages
- path: '**\*.snupkg'
name: NuGet Symbols Packages
deploy:
- provider: NuGet
name: pre-release
server: https://www.myget.org/F/coenm/api/v2/package
api_key:
secure: t8JtzPkpHidqOii+bLuSiOKgqzsdoSCBI3Sc/Uy6D9jWfxNd7zUUhhTgGHj5rpV9
skip_symbols: true #doesn't work
artifact: /.*\.nupkg/
on:
branch: /(master|release.*|develop)/