Skip to content

Commit c04f9fc

Browse files
committed
Add GitVersion to build
1 parent 831379a commit c04f9fc

File tree

3 files changed

+51
-109
lines changed

3 files changed

+51
-109
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ All notable changes to this project will be documented in this file.
4444
- Extracted CreateReport() and CreateTextReport() from PlotModel (#517)
4545
- Renamed GetLastUpdateException to GetLastPlotException and added the ability to see render exceptions(#543)
4646
- Move TileMapAnnotation class to example library (#567)
47+
- Change to semantic versioning (#595)
4748

4849
### Removed
4950
- StyleCop tasks (#556)

GitVersionConfig.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
next-version: 1.0.0
2+
branches: {}

appveyor.yml

+48-109
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,48 @@
1-
- # master branch only
2-
branches:
3-
only:
4-
- master
5-
version: 2015.1.{build}
6-
environment:
7-
nuget_api_key:
8-
secure: kM3Kse+ivuuE5RVoe6dPdw+aguWx56K2YeXujGa9tMPQTms3lv7QxNpTLFMALYNa
9-
ftp_user:
10-
secure: Q/t4tRGEtslJG0q4i9QeMw==
11-
ftp_password:
12-
secure: 8Zwx5dScSahnbraTsKTP3g==
13-
install:
14-
- cinst LynxToolkit -y
15-
- cinst gitlink -Pre -y
16-
- if not exist gtk-sharp-2.12.26.msi appveyor DownloadFile http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.26.msi
17-
- msiexec /i gtk-sharp-2.12.26.msi /qn /norestart
18-
- if not exist gtk-sharp-2.99.3.msi appveyor DownloadFile https://download.gnome.org/binaries/win32/gtk-sharp/2.99/gtk-sharp-2.99.3.msi
19-
- msiexec /i gtk-sharp-2.99.3.msi /qn /norestart
20-
cache:
21-
- gtk-sharp-2.12.26.msi
22-
- gtk-sharp-2.99.3.msi
23-
platform: Any CPU
24-
configuration: Release
25-
before_build:
26-
- cmd: UpdateVersionNumbers /Version=%APPVEYOR_BUILD_VERSION% /Dependency=OxyPlot.Core /Dependency=OxyPlot.Wpf /Dependency=OxyPlot.WindowsForms /Dependency=OxyPlot.WindowsUniversal /Dependency=OxyPlot.Silverlight /Dependency=OxyPlot.WP8 /ExtractReleaseNotes=CHANGELOG.md /Directory=Source
27-
- cmd: NuGet restore Source/OxyPlot.AppVeyor.sln
28-
build:
29-
project: Source/OxyPlot.AppVeyor.sln
30-
verbosity: minimal
31-
after_build:
32-
cmd: gitlink c:\projects\oxyplot -u https://github.com/oxyplot/oxyplot -b master -f Source/OxyPlot.AppVeyor.sln -ignore Xwt
33-
artifacts:
34-
- path: Output
35-
name: OxyPlot-$(APPVEYOR_BUILD_VERSION)
36-
type: zip
37-
deploy_script:
38-
- cmd: mkdir Packages
39-
- cmd: NuGet pack Source\OxyPlot.nuspec -OutputDirectory Packages
40-
- cmd: NuGet pack Source\OxyPlot\OxyPlot.Core.nuspec -OutputDirectory Packages
41-
- cmd: NuGet pack Source\OxyPlot.Wpf\OxyPlot.Wpf.nuspec -OutputDirectory Packages
42-
- cmd: NuGet pack Source\OxyPlot.Windows\OxyPlot.Windows.nuspec -OutputDirectory Packages
43-
- cmd: NuGet pack Source\OxyPlot.WindowsForms\OxyPlot.WindowsForms.nuspec -OutputDirectory Packages
44-
- cmd: NuGet pack Source\OxyPlot.WindowsUniversal\OxyPlot.WindowsUniversal.nuspec -OutputDirectory Packages
45-
- cmd: NuGet pack Source\OxyPlot.WP8\OxyPlot.WP8.nuspec -OutputDirectory Packages
46-
- cmd: NuGet pack Source\OxyPlot.Silverlight\OxyPlot.Silverlight.nuspec -OutputDirectory Packages
47-
- cmd: NuGet pack Source\OxyPlot.OpenXml\OxyPlot.OpenXml.nuspec -OutputDirectory Packages
48-
- cmd: NuGet pack Source\OxyPlot.Pdf\OxyPlot.Pdf.nuspec -OutputDirectory Packages
49-
- cmd: NuGet pack Source\OxyPlot.GtkSharp\OxyPlot.GtkSharp.nuspec -OutputDirectory Packages
50-
- cmd: NuGet pack Source\OxyPlot.GtkSharp\OxyPlot.GtkSharp3.nuspec -OutputDirectory Packages
51-
- cmd: NuGet pack Source\OxyPlot.Xwt\OxyPlot.Xwt.nuspec -OutputDirectory Packages
52-
- cmd: for %%G in (Packages\*.nupkg) do NuGet push %%G %nuget_api_key%
53-
- cmd: FtpUpload ftp.oxyplot.org %ftp_user% %ftp_password% Output\SL5\Examples\Silverlight\ExampleBrowser\ExampleBrowser.xap /ExampleBrowser/ExampleBrowser.xap
54-
55-
- # develop branch only
56-
branches:
57-
only:
58-
- develop
59-
version: 2015.1.{build}-alpha
60-
environment:
61-
version: 2015.1.%APPVEYOR_BUILD_NUMBER%
62-
nuget_api_key:
63-
secure: kM3Kse+ivuuE5RVoe6dPdw+aguWx56K2YeXujGa9tMPQTms3lv7QxNpTLFMALYNa
64-
ftp_user:
65-
secure: Q/t4tRGEtslJG0q4i9QeMw==
66-
ftp_password:
67-
secure: 8Zwx5dScSahnbraTsKTP3g==
68-
install:
69-
- cinst LynxToolkit -y
70-
- cinst gitlink -Pre -y
71-
- if not exist gtk-sharp-2.12.26.msi appveyor DownloadFile http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.26.msi
72-
- msiexec /i gtk-sharp-2.12.26.msi /qn /norestart
73-
- if not exist gtk-sharp-2.99.3.msi appveyor DownloadFile https://download.gnome.org/binaries/win32/gtk-sharp/2.99/gtk-sharp-2.99.3.msi
74-
- msiexec /i gtk-sharp-2.99.3.msi /qn /norestart
75-
cache:
76-
- gtk-sharp-2.12.26.msi
77-
- gtk-sharp-2.99.3.msi
78-
platform: Any CPU
79-
configuration: Release
80-
before_build:
81-
- cmd: git submodule update --init --recursive
82-
- cmd: UpdateVersionNumbers /Version=%version% /PreRelease=alpha /Dependency=OxyPlot.Core /Dependency=OxyPlot.Wpf /Dependency=OxyPlot.WindowsForms /Dependency=OxyPlot.WindowsUniversal /Dependency=OxyPlot.Silverlight /Dependency=OxyPlot.WP8 /ExtractReleaseNotes=CHANGELOG.md /Directory=Source
83-
- cmd: NuGet restore Source/OxyPlot.AppVeyor.sln
84-
build:
85-
project: Source/OxyPlot.AppVeyor.sln
86-
verbosity: normal
87-
after_build:
88-
cmd: gitlink c:\projects\oxyplot -u https://github.com/oxyplot/oxyplot -b develop -f Source/OxyPlot.AppVeyor.sln -ignore Xwt
89-
artifacts:
90-
- path: Output
91-
name: OxyPlot-$(APPVEYOR_BUILD_VERSION)
92-
type: zip
93-
deploy_script:
94-
- cmd: mkdir Packages
95-
- cmd: NuGet pack Source\OxyPlot.nuspec -OutputDirectory Packages
96-
- cmd: NuGet pack Source\OxyPlot\OxyPlot.Core.nuspec -OutputDirectory Packages
97-
- cmd: NuGet pack Source\OxyPlot.Wpf\OxyPlot.Wpf.nuspec -OutputDirectory Packages
98-
- cmd: NuGet pack Source\OxyPlot.Windows\OxyPlot.Windows.nuspec -OutputDirectory Packages
99-
- cmd: NuGet pack Source\OxyPlot.WindowsForms\OxyPlot.WindowsForms.nuspec -OutputDirectory Packages
100-
- cmd: NuGet pack Source\OxyPlot.WindowsUniversal\OxyPlot.WindowsUniversal.nuspec -OutputDirectory Packages
101-
- cmd: NuGet pack Source\OxyPlot.WP8\OxyPlot.WP8.nuspec -OutputDirectory Packages
102-
- cmd: NuGet pack Source\OxyPlot.Silverlight\OxyPlot.Silverlight.nuspec -OutputDirectory Packages
103-
- cmd: NuGet pack Source\OxyPlot.OpenXml\OxyPlot.OpenXml.nuspec -OutputDirectory Packages
104-
- cmd: NuGet pack Source\OxyPlot.Pdf\OxyPlot.Pdf.nuspec -OutputDirectory Packages
105-
- cmd: NuGet pack Source\OxyPlot.GtkSharp\OxyPlot.GtkSharp.nuspec -OutputDirectory Packages
106-
- cmd: NuGet pack Source\OxyPlot.GtkSharp\OxyPlot.GtkSharp3.nuspec -OutputDirectory Packages
107-
- cmd: NuGet pack Source\OxyPlot.Xwt\OxyPlot.Xwt.nuspec -OutputDirectory Packages
108-
- cmd: for %%G in (Packages\*.nupkg) do NuGet push %%G %nuget_api_key%
109-
- cmd: FtpUpload ftp.oxyplot.org %ftp_user% %ftp_password% Output\SL5\Examples\Silverlight\ExampleBrowser\ExampleBrowser.xap /ExampleBrowser/ExampleBrowser.xap
1+
install:
2+
- cinst gitversion.portable -pre -y
3+
- cinst gitlink -Pre -y
4+
- if not exist gtk-sharp-2.12.26.msi appveyor DownloadFile http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.26.msi
5+
- msiexec /i gtk-sharp-2.12.26.msi /qn /norestart
6+
- if not exist gtk-sharp-2.99.3.msi appveyor DownloadFile https://download.gnome.org/binaries/win32/gtk-sharp/2.99/gtk-sharp-2.99.3.msi
7+
- msiexec /i gtk-sharp-2.99.3.msi /qn /norestart
8+
cache:
9+
- gtk-sharp-2.12.26.msi
10+
- gtk-sharp-2.99.3.msi
11+
platform: Any CPU
12+
configuration: Release
13+
assembly_info:
14+
patch: false
15+
before_build:
16+
- cmd: git submodule update --init --recursive
17+
- cmd: NuGet restore Source/OxyPlot.AppVeyor.sln
18+
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
19+
build:
20+
project: Source/OxyPlot.AppVeyor.sln
21+
verbosity: minimal
22+
after_build:
23+
- cmd: gitlink c:\projects\oxyplot -u https://github.com/oxyplot/oxyplot -f Source/OxyPlot.AppVeyor.sln -ignore Xwt
24+
- cmd: NuGet pack Source\OxyPlot.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
25+
- cmd: NuGet pack Source\OxyPlot\OxyPlot.Core.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
26+
- cmd: NuGet pack Source\OxyPlot.Wpf\OxyPlot.Wpf.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
27+
- cmd: NuGet pack Source\OxyPlot.Windows\OxyPlot.Windows.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
28+
- cmd: NuGet pack Source\OxyPlot.WindowsForms\OxyPlot.WindowsForms.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
29+
- cmd: NuGet pack Source\OxyPlot.WindowsUniversal\OxyPlot.WindowsUniversal.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
30+
- cmd: NuGet pack Source\OxyPlot.WP8\OxyPlot.WP8.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
31+
- cmd: NuGet pack Source\OxyPlot.Silverlight\OxyPlot.Silverlight.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
32+
- cmd: NuGet pack Source\OxyPlot.OpenXml\OxyPlot.OpenXml.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
33+
- cmd: NuGet pack Source\OxyPlot.Pdf\OxyPlot.Pdf.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
34+
- cmd: NuGet pack Source\OxyPlot.GtkSharp\OxyPlot.GtkSharp.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
35+
- cmd: NuGet pack Source\OxyPlot.GtkSharp\OxyPlot.GtkSharp3.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
36+
- cmd: NuGet pack Source\OxyPlot.Xwt\OxyPlot.Xwt.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
37+
artifacts:
38+
- path: Output
39+
name: OxyPlot-$(GitVersion_SemVer)
40+
type: zip
41+
deploy:
42+
provider: NuGet
43+
server: # remove to push to NuGet.org
44+
api_key:
45+
secure: kM3Kse+ivuuE5RVoe6dPdw+aguWx56K2YeXujGa9tMPQTms3lv7QxNpTLFMALYNa
46+
skip_symbols: false
47+
symbol_server: # remove to push symbols to SymbolSource.org
48+
artifact: /.*\.nupkg/

0 commit comments

Comments
 (0)