Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -49,4 +58,4 @@ deploy:
artifact: 'NuGetPackage'
on:
branch: master
APPVEYOR_REPO_TAG: true
APPVEYOR_REPO_TAG: trueX
2 changes: 1 addition & 1 deletion build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down