Skip to content

Commit

Permalink
Update Appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
moh-hassan committed Feb 2, 2020
1 parent 32bbe00 commit 17d1bb9
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#version should be only changed with RELEASE eminent, see RELEASE.md

version: 2.7.84-beta-{build}
version: 2.8.0-beta-{build}

image: Visual Studio 2019

clone_depth: 1
pull_requests:
do_not_increment_build_number: false
do_not_increment_build_number: true

init:
- ps: |
Expand All @@ -15,23 +15,37 @@ init:
if ($env:APPVEYOR_REPO_TAG -eq "true") {
$ver = $env:APPVEYOR_REPO_TAG_NAME
if($ver.StartsWith("v") -eq $true) { $ver = $ver.Substring(1) }
Update-AppveyorBuild -Version $ver
}
- ps: Write-Host "APPVEYOR_BUILD_VERSION='$env:APPVEYOR_BUILD_VERSION'" -ForegroundColor Yellow
$env:PACKAGE_VERSION = $ver
} else {
$env:PACKAGE_VERSION = $env:APPVEYOR_BUILD_VERSION
}
- ps: |
Write-Host "PACKAGE_VERSION:$env:PACKAGE_VERSION | APPVEYOR_BUILD_VERSION='$env:APPVEYOR_BUILD_VERSION'" -ForegroundColor Yellow
Write-Host "APPVEYOR_REPO_TAG_NAME:$env:APPVEYOR_REPO_TAG_NAME'" -ForegroundColor Yellow
skip_commits:
files:
- docs/*
- art/*
- '**/*.md'
#- .travis.yml
- .gitignore
- .editorconfig
message: /updated readme.*|update readme.*s|update docs.*|update version.*|update changelog.*/

environment:
matrix:
- BUILD_TARGET: base
- BUILD_TARGET: fsharp

build_script:
- cmd: dotnet build src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET%
- cmd: dotnet build src/CommandLine/ -c Release --version-suffix %PACKAGE_VERSION% /p:BuildTarget=%BUILD_TARGET%

test_script:
- cmd: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=%BUILD_TARGET%

after_test:
- cmd: dotnet pack src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET%
- cmd: dotnet pack src/CommandLine/ -c Release --version-suffix %PACKAGE_VERSION% /p:BuildTarget=%BUILD_TARGET%

artifacts:
- path: 'src/CommandLine/bin/Release/*.nupkg'
Expand Down Expand Up @@ -59,11 +73,3 @@ deploy:
on:
APPVEYOR_REPO_TAG: true

#myget
- provider: NuGet
server: https://www.myget.org/F/commandlineparser/api/v2/package
api_key:
secure: ltHh/DsAk+Y7qbJwzUO4+i1U+7uGTLVYXTdW0+Rk2z7jqj5DDNNlih9J8K7bU4bH
artifact: 'NuGetPackages'
symbol_server: https://www.myget.org/F/commandlineparser/symbols/api/v2/package

0 comments on commit 17d1bb9

Please sign in to comment.