From 70a9e87094d041908f8262b63eadb6fb27973ef1 Mon Sep 17 00:00:00 2001 From: Eric Newton Date: Sat, 6 Jan 2018 16:30:02 -0500 Subject: [PATCH] build updates for release --- appveyor.yml | 27 ++++++++++++++++++--------- build.fsx | 2 +- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 2e2d359c..4dc94f3c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,35 +1,44 @@ #version should be changed with any pull requests -version: 2.2.0.{build} +version: 2.1.{build} clone_depth: 1 pull_requests: do_not_increment_build_number: true -cache: -- packages -> paket.dependencies +#cache: +#- packages -> paket.dependencies +#- paket-files > paket.dependencies init: - ps: | git config --global core.autocrlf input - if ($env:APPVEYOR_REPO_TAG -eq "true") - { + if ($env:APPVEYOR_REPO_TAG -eq "true") { $ver = $env:APPVEYOR_REPO_TAG_NAME if($ver.StartsWith("v") -eq $true) { $ver = $version.Substring(1) } Update-AppveyorBuild -Version $ver } - else - { + elseif([System.String]::IsNullOrEmpty($env:APPVEYOR_PULL_REQUEST_NUMBER) -eq $true) { $ver = $env:APPVEYOR_BUILD_VERSION $commit = $env:APPVEYOR_REPO_COMMIT.substring(0,7) Update-AppveyorBuild -Version "$ver-$commit" } +assembly_info: + file: src\SharedAssemblyInfo.cs + patch: true + assembly_version: '{version}' + assembly_file_version: '{version}' + assembly_informational_version: $(APPVEYOR_BUILD_VERSION) + build_script: - cmd: build.cmd after_build: -- cmd: nuget pack CommandLine.nuspec -version %APPVEYOR_BUILD_VERSION% +- ps: | + get-childitem build\* -include *.dll | foreach-object { "{0}`t{1}" -f $_.Name, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion } + + nuget pack CommandLine.nuspec -version "$env:APPVEYOR_BUILD_VERSION" test: off #tests handled within FAKE @@ -49,4 +58,4 @@ deploy: artifact: 'NuGetPackage' on: branch: master - APPVEYOR_REPO_TAG: true + APPVEYOR_REPO_TAG: trueX diff --git a/build.fsx b/build.fsx index ae17995d..7ef072f0 100644 --- a/build.fsx +++ b/build.fsx @@ -9,7 +9,7 @@ let packagingDir = "./nuget/" let authors = ["Giacomo Stelluti Scala"] let projectDescription = "The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks." let projectSummary = "Command Line Parser Library" -let buildVersion = "2.0.0.0" +let buildVersion = "2.2.0.0" Target "Clean" (fun _ -> CleanDirs [buildDir; testDir]