forked from ericnewton76/gmaps-api-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
90 lines (66 loc) · 2.21 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
version: 0.25.{build}
pull_requests:
do_not_increment_build_number: true
configuration: Release
shallow_clone: true
image: Visual Studio 2017
init:
- ps: >
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
if($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_TAG_NAME.StartsWith("v") -eq $true) {
Set-AppVeyorBuildVariable -Name APPVEYOR_BUILD_VERSION -Value $env:APPVEYOR_REPO_TAG_NAME.Substring(1)
}
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
GOOGLE_API_KEY:
secure: pnYRPfFKB+uub3hlM9mX2q3CzVKsqCg/EM/lFZ2DN6yePU4wBbhr0PhBf3dDVgU4
APPVEYOR_RDP_PASSWORD:
secure: tXLj55KTiLnAgoQp6lXCHg==
before_build:
- msbuild src\GoogleMapsForNET.sln /t:restore
build_script:
- cmd: msbuild src\GoogleMapsForNET.sln /t:build /p:Configuration=Release /verbosity:minimal
after_build:
- cmd: nuget pack gmaps-api-net.nuspec -version %APPVEYOR_BUILD_VERSION%
test_script:
- ps: >-
$DLL_LOCATION=".\src\Google.Maps.Test\bin\Release\net461\Google.Maps.Test.dll"
nunit3-console $DLL_LOCATION --labels=All --where:"cat!=ValueTesting" "--result=testresults.xml;format=AppVeyor"
if($? -eq $true) {
nunit3-console $DLL_LOCATION --labels=All --where:"cat!=ValueTesting" "--result=testresults2.xml;format=AppVeyor"
}
artifacts:
- path: '*.nupkg'
name: NuGetPackage
deploy:
- provider: NuGet
api_key:
secure: 2SwDMmXZZtgoLWsldKZ8GCu9rZXpO5quTYtSNJQSeeiqDjnmo0OfutNVcH3jsfpj
artifact: NugetPackage
on:
APPVEYOR_REPO_TAG: true
- provider: GitHub
tag: v$(APPVEYOR_BUILD_VERSION)
auth_token:
secure: bupArXj8lz6RLLO8GPwyRnbGwcmyjg4MvmlBsYD8x+euC9YS5G5y9jaSPCpS7tsX
artifact: NugetPackage
draft: true
force_update: true
on:
APPVEYOR_REPO_TAG: true
notifications:
- provider: Email
to:
- ericnewton76@gmail.com
subject: Gmaps-api-net build completed.
on_build_success: true
on_build_failure: true
on_build_status_changed: true
# Temporary workaround for AppVeyor -> NuGet connectivity issues
hosts:
api.nuget.org: 93.184.221.200