Skip to content

Commit 5eba72c

Browse files
committed
AppVeyor versioning
Let's start with version 0. Local builds ==== - Uses .NET automatic versioning - NuGet Version ends in "-test" AppVeyor unofficial builds ==== - Runs on all new branches, pull requests, etc. as a prereq to merging to master - Uses build version - NuGet Version ends in the branch name AppVeyor official builds ==== - Only runs on master - Uses build version - NuGet Version ends in "-beta" (this will go away at some point) - Automatically publishes to Nuget.org
1 parent 85e4d50 commit 5eba72c

7 files changed

+44
-6
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[![Build status](https://ci.appveyor.com/api/projects/status/drlkrd4ftaou35j1/branch/master?svg=true)](https://ci.appveyor.com/project/JayBazuzi/valuetypeassertions/branch/master)
22

3-
43
# ValueTypeAssertions
54

65
By "value type", I mean "a type that represents a value in some domain."
@@ -28,3 +27,7 @@ public void NtfsPathIsCaseInsensitive()
2827
ValueTypeAssertions.HasValueEquality(new NtfsPath("foo.txt"), new NtfsPath("FOO.TXT"));
2928
}
3029
```
30+
31+
# Acknowledgements
32+
33+
99% of the ideas in this project came from other people. A big chunk came from [Brian Geihsler](https://gist.github.com/bgeihsgt).

TODO.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Minimum Marketable Features
55

66
User stories on the current MMF
77
====
8-
- appveyor build versioning
9-
- appveyor publish nuget
108
- travis-CI build (blocked on https://github.com/travis-ci/travis-ci/issues/5932)
9+
10+
Engineering tasks on the current story
11+
====
12+
- shared build properties?
13+

ValueTypeAssertions.sln

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
77
ProjectSection(SolutionItems) = preProject
88
.gitattributes = .gitattributes
99
.gitignore = .gitignore
10+
appveyor-official.yml = appveyor-official.yml
1011
appveyor.yml = appveyor.yml
1112
LICENSE.md = LICENSE.md
1213
README.md = README.md

ValueTypeAssertions/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
[assembly: AssemblyCopyright("Copyright © 2016")]
1010
[assembly: AssemblyDescription("Value Type Assertions")]
1111
[assembly: ComVisible(false)]
12-
[assembly: AssemblyVersion("1.0.0")]
13-
[assembly: AssemblyFileVersion("1.0.0.0")]
12+
[assembly: AssemblyVersion("0.0.*")]
13+
[assembly: AssemblyInformationalVersion("0.0.0-test")]

ValueTypeAssertions/ValueTypeAssertions.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
</ItemGroup>
5454
<ItemGroup>
5555
<None Include="packages.config" />
56+
<None Include="ValueTypeAssertions.nuspec" />
5657
</ItemGroup>
5758
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
5859
<Target Name="AfterBuild">

appveyor-official.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 0.0.{build}
2+
image: Visual Studio 2015
3+
branches:
4+
only:
5+
- master
6+
environment:
7+
TreatWarningsAsErrors: true
8+
before_build:
9+
- nuget restore
10+
build:
11+
publish_nuget: true
12+
publish_nuget_symbols: true
13+
after_build:
14+
- ps: .\packages\JetBrains.ReSharper.CommandLineTools.2016.1.20160504.105828\tools\inspectcode.exe ValueTypeAssertions.sln --output=InspectCodeOutput.xml --disable-settings-layers:'GlobalAll;GlobalPerProduct;SolutionPersonal;ProjectPersonal' ; fc.exe InspectCodeBaseline.xml InspectCodeOutput.xml
15+
assembly_info:
16+
patch: true
17+
file: AssemblyInfo.cs
18+
assembly_version: "{version}"
19+
assembly_informational_version: "{version}-beta"
20+
deploy:
21+
provider: NuGet
22+
api_key:
23+
secure: ohOHAKDLwiS46NIS3DEbwnX6Ggln9CXEe9EKjwVASiRT8Re33GkkHUr+fS/7uz8l
24+
skip_symbols: false
25+
artifact: /.*\.nupkg/

appveyor.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.0.{build}
1+
version: 0.0.{build}
22
image: Visual Studio 2015
33
environment:
44
TreatWarningsAsErrors: true
@@ -9,3 +9,8 @@ build:
99
publish_nuget_symbols: true
1010
after_build:
1111
- ps: .\packages\JetBrains.ReSharper.CommandLineTools.2016.1.20160504.105828\tools\inspectcode.exe ValueTypeAssertions.sln --output=InspectCodeOutput.xml --disable-settings-layers:'GlobalAll;GlobalPerProduct;SolutionPersonal;ProjectPersonal' ; fc.exe InspectCodeBaseline.xml InspectCodeOutput.xml
12+
assembly_info:
13+
patch: true
14+
file: AssemblyInfo.cs
15+
assembly_version: "{version}"
16+
assembly_informational_version: "{version}-{branch}"

0 commit comments

Comments
 (0)