Skip to content

Commit 879cac2

Browse files
authored
Merge pull request #207 from ericnewton76/master
build updates for release
2 parents f2bc5b9 + 70a9e87 commit 879cac2

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

appveyor.yml

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,44 @@
11
#version should be changed with any pull requests
2-
version: 2.2.0.{build}
2+
version: 2.1.{build}
33

44
clone_depth: 1
55
pull_requests:
66
do_not_increment_build_number: true
77

8-
cache:
9-
- packages -> paket.dependencies
8+
#cache:
9+
#- packages -> paket.dependencies
10+
#- paket-files > paket.dependencies
1011

1112
init:
1213
- ps: |
1314
git config --global core.autocrlf input
1415
15-
if ($env:APPVEYOR_REPO_TAG -eq "true")
16-
{
16+
if ($env:APPVEYOR_REPO_TAG -eq "true") {
1717
$ver = $env:APPVEYOR_REPO_TAG_NAME
1818
if($ver.StartsWith("v") -eq $true) { $ver = $version.Substring(1) }
1919
Update-AppveyorBuild -Version $ver
2020
}
21-
else
22-
{
21+
elseif([System.String]::IsNullOrEmpty($env:APPVEYOR_PULL_REQUEST_NUMBER) -eq $true) {
2322
$ver = $env:APPVEYOR_BUILD_VERSION
2423
$commit = $env:APPVEYOR_REPO_COMMIT.substring(0,7)
2524
Update-AppveyorBuild -Version "$ver-$commit"
2625
}
2726
27+
assembly_info:
28+
file: src\SharedAssemblyInfo.cs
29+
patch: true
30+
assembly_version: '{version}'
31+
assembly_file_version: '{version}'
32+
assembly_informational_version: $(APPVEYOR_BUILD_VERSION)
33+
2834
build_script:
2935
- cmd: build.cmd
3036

3137
after_build:
32-
- cmd: nuget pack CommandLine.nuspec -version %APPVEYOR_BUILD_VERSION%
38+
- ps: |
39+
get-childitem build\* -include *.dll | foreach-object { "{0}`t{1}" -f $_.Name, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion }
40+
41+
nuget pack CommandLine.nuspec -version "$env:APPVEYOR_BUILD_VERSION"
3342
3443
test: off #tests handled within FAKE
3544

@@ -49,4 +58,4 @@ deploy:
4958
artifact: 'NuGetPackage'
5059
on:
5160
branch: master
52-
APPVEYOR_REPO_TAG: true
61+
APPVEYOR_REPO_TAG: trueX

build.fsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let packagingDir = "./nuget/"
99
let authors = ["Giacomo Stelluti Scala"]
1010
let projectDescription = "The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks."
1111
let projectSummary = "Command Line Parser Library"
12-
let buildVersion = "2.0.0.0"
12+
let buildVersion = "2.2.0.0"
1313

1414
Target "Clean" (fun _ ->
1515
CleanDirs [buildDir; testDir]

0 commit comments

Comments
 (0)