Skip to content

Commit 1373286

Browse files
committed
Update appveyor.yml
1 parent 3e43750 commit 1373286

File tree

1 file changed

+23
-63
lines changed

1 file changed

+23
-63
lines changed

Diff for: appveyor.yml

+23-63
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,61 @@
11
#version should be only changed with RELEASE eminent, see RELEASE.md
22

33
version: 2.8.0-ci-{build}
4-
image:
5-
- Visual Studio 2019
6-
- ubuntu1804
4+
5+
image: Visual Studio 2019
76

87
clone_depth: 1
98
pull_requests:
10-
do_not_increment_build_number: false
9+
do_not_increment_build_number: true
1110

1211
init:
1312
- ps: |
1413
git config --global core.autocrlf input
15-
$env:CAN_PUBLISH = $true
14+
1615
if ($env:APPVEYOR_REPO_TAG -eq "true") {
1716
$ver = $env:APPVEYOR_REPO_TAG_NAME
1817
if($ver.StartsWith("v") -eq $true) { $ver = $ver.Substring(1) }
19-
try
20-
{
21-
Update-AppveyorBuild -Version $ver
22-
}
23-
catch
24-
{
25-
Write-Output "Update-AppveyorBuild Fail to change version to TAG: '$env:APPVEYOR_REPO_TAG_NAME'" -ForegroundColor Red
26-
Write-Output "Exception Error: $PSItem.Exception.Message" -ForegroundColor Red
27-
$env:CAN_PUBLISH = $false
28-
}
18+
Update-AppveyorBuild -Version $ver
2919
}
3020
31-
- ps: |
32-
if( $ver -match '^\d+\.\d+\.\d+$') {
33-
$env:IS_RELEASE = $true
34-
} else {
35-
$env:IS_RELEASE = $false }
36-
37-
- ps: |
38-
Write-Host "APPVEYOR_BUILD_VERSION='$env:APPVEYOR_BUILD_VERSION'" -ForegroundColor Yellow
39-
Write-Host "APPVEYOR_REPO_TAG_NAME= '$env:APPVEYOR_REPO_TAG_NAME'" -ForegroundColor Yellow
40-
41-
skip_commits:
42-
files:
43-
- docs/*
44-
- art/*
45-
- '**/*.md'
46-
- .gitignore
47-
- .editorconfig
48-
message: /updated readme.*|update readme.*s|update docs.*|update version.*|update changelog.*/
49-
5021
environment:
5122
matrix:
5223
- BUILD_TARGET: base
5324
- BUILD_TARGET: fsharp
5425

5526
build_script:
5627
- cmd: dotnet build src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET%
57-
- sh: dotnet build src/CommandLine/ -c Release --version-suffix $APPVEYOR_BUILD_VERSION /p:BuildTarget=$BUILD_TARGET
5828

5929
test_script:
6030
- cmd: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=%BUILD_TARGET%
61-
- sh: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=$BUILD_TARGET -f netcoreapp2.0
6231

6332
after_test:
6433
- cmd: dotnet pack src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET%
65-
- sh: dotnet pack src/CommandLine/ -c Release --version-suffix $APPVEYOR_BUILD_VERSION /p:BuildTarget=$BUILD_TARGET
6634

6735
artifacts:
6836
- path: 'src/CommandLine/bin/Release/*.nupkg'
6937
name: NuGetPackages
7038
- path: 'src/CommandLine/bin/Release/*.snupkg'
71-
name: symbol
39+
name: symbol
40+
7241
on_failure:
7342
- cmd: |
7443
tree /f /a >files.lst
7544
appveyor PushArtifact .\files.lst -DeploymentName "Failed Build File Listing"
7645
77-
for:
78-
-
79-
matrix:
80-
only:
81-
- image: Visual Studio 2019
82-
deploy:
83-
- provider: GitHub
84-
auth_token:
85-
secure: hVyVwHl0JiVq0VxXB4VMRWbUtrGclIzadfnWFcWCQBLvbgMLahLBnWlwGglT63pZ
86-
artifact: /.*(\.|\.s)nupkg/
87-
prerelease: false
88-
force_update: true #fsharp package runs as separate build job, so have to force_update to add fsharp.nuget added
89-
on:
90-
APPVEYOR_REPO_TAG: true
91-
CAN_PUBLISH: true
92-
93-
- provider: NuGet
94-
api_key:
95-
secure: Ab4T/48EyIJhVrqkfKdUxmHUtseEVuXuyrGACxZ0KN35rb/BzABlBM2YjZojicvT
96-
artifact: 'NuGetPackages'
97-
on:
98-
APPVEYOR_REPO_TAG: true
99-
CAN_PUBLISH: true
100-
101-
46+
deploy:
47+
- provider: GitHub
48+
auth_token:
49+
secure: hVyVwHl0JiVq0VxXB4VMRWbUtrGclIzadfnWFcWCQBLvbgMLahLBnWlwGglT63pZ
50+
artifact: /.*(\.|\.s)nupkg/
51+
prerelease: false
52+
force_update: true #fsharp package runs as separate build job, so have to force_update to add fsharp.nuget added
53+
on:
54+
APPVEYOR_REPO_TAG: true
55+
56+
- provider: NuGet
57+
api_key:
58+
secure: Ab4T/48EyIJhVrqkfKdUxmHUtseEVuXuyrGACxZ0KN35rb/BzABlBM2YjZojicvT
59+
artifact: /.*(\.|\.s)nupkg/
60+
on:
61+
APPVEYOR_REPO_TAG: true

0 commit comments

Comments
 (0)