1
- version : 0.25 .{build}
1
+ version : 0.30 .{build}
2
2
3
3
pull_requests :
4
4
do_not_increment_build_number : true
5
5
6
6
configuration : Release
7
7
8
- shallow_clone : true
8
+ # shallow_clone: true
9
+ clone_depth : 10
9
10
10
11
image : Visual Studio 2017
11
12
12
- init :
13
- - ps : >
14
- iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
13
+ install :
14
+ - choco install gitversion.portable -pre -y
15
15
16
- if($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_TAG_NAME.StartsWith("v") -eq $true) {
17
-
18
- Set-AppVeyorBuildVariable -Name APPVEYOR_BUILD_VERSION -Value $env:APPVEYOR_REPO_TAG_NAME.Substring(1)
19
-
20
- }
21
-
16
+ # init:
17
+ # - ps: >
18
+ # iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
19
+ #
20
+ # if($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_TAG_NAME.StartsWith("v") -eq $true) {
21
+ #
22
+ # Set-AppVeyorBuildVariable -Name APPVEYOR_BUILD_VERSION -Value $env:APPVEYOR_REPO_TAG_NAME.Substring(1)
23
+ #
24
+ # }
25
+ #
22
26
23
27
assembly_info :
24
- patch : true
25
- file : ' **\AssemblyInfo.*'
26
- assembly_version : ' {version}'
27
- assembly_file_version : ' {version}'
28
- assembly_informational_version : ' {version}'
28
+ patch : false
29
29
30
30
environment :
31
31
GOOGLE_API_KEY :
@@ -34,13 +34,17 @@ environment:
34
34
secure : tXLj55KTiLnAgoQp6lXCHg==
35
35
36
36
before_build :
37
+ # - nuget restore
38
+ - ps : gitversion /l console /output buildserver /updateAssemblyInfo
37
39
- msbuild src\GoogleMapsForNET.sln /t:restore
38
40
39
- build_script :
40
- - cmd : msbuild src\GoogleMapsForNET.sln /t:build /p:Configuration=Release /verbosity:minimal
41
+ build :
42
+ project : src\GoogleMapsForNET.sln
41
43
42
44
after_build :
43
- - cmd : nuget pack gmaps-api-net.nuspec -version %APPVEYOR_BUILD_VERSION%
45
+ # - cmd: nuget pack gmaps-api-net.nuspec -version %APPVEYOR_BUILD_VERSION%
46
+ - cmd : ECHO nuget pack gmaps-api-net.nuspec -version "%GitVersion_NuGetVersion%"
47
+ - cmd : nuget pack gmaps-api-net.nuspec -version "%GitVersion_NuGetVersion%"
44
48
45
49
test_script :
46
50
- ps : >-
@@ -65,7 +69,7 @@ deploy:
65
69
secure : 2SwDMmXZZtgoLWsldKZ8GCu9rZXpO5quTYtSNJQSeeiqDjnmo0OfutNVcH3jsfpj
66
70
artifact : NugetPackage
67
71
on :
68
- APPVEYOR_REPO_TAG : true
72
+ APPVEYOR_REPO_TAG : true1
69
73
- provider : GitHub
70
74
tag : v$(APPVEYOR_BUILD_VERSION)
71
75
auth_token :
@@ -74,7 +78,7 @@ deploy:
74
78
draft : true
75
79
force_update : true
76
80
on :
77
- APPVEYOR_REPO_TAG : true
81
+ APPVEYOR_REPO_TAG : true1
78
82
79
83
notifications :
80
84
- provider : Email
@@ -84,7 +88,3 @@ notifications:
84
88
on_build_success : true
85
89
on_build_failure : true
86
90
on_build_status_changed : true
87
-
88
- # Temporary workaround for AppVeyor -> NuGet connectivity issues
89
- hosts :
90
- api.nuget.org : 93.184.221.200
0 commit comments