-
Notifications
You must be signed in to change notification settings - Fork 479
Expand file tree
/
Copy pathappveyor.yml
More file actions
84 lines (71 loc) · 2.52 KB
/
appveyor.yml
File metadata and controls
84 lines (71 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#version should be only changed with RELEASE eminent, see RELEASE.md
version: 2.8.0-ci-{build}
image:
- Visual Studio 2019
- ubuntu1804
clone_depth: 1
pull_requests:
do_not_increment_build_number: false
init:
- ps: |
git config --global core.autocrlf input
if ($env:APPVEYOR_REPO_TAG -eq "true") {
$ver = $env:APPVEYOR_REPO_TAG_NAME
if($ver.StartsWith("v") -eq $true) { $ver = $ver.Substring(1) }
$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'
- .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 %PACKAGE_VERSION% /p:BuildTarget=%BUILD_TARGET%
- sh: 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%
- sh: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=$BUILD_TARGET -f netcoreapp2.0
after_test:
- cmd: dotnet pack src/CommandLine/ -c Release --version-suffix %PACKAGE_VERSION% /p:BuildTarget=%BUILD_TARGET%
- sh: dotnet pack src/CommandLine/ -c Release --version-suffix $PACKAGE_VERSION /p:BuildTarget=$BUILD_TARGET
artifacts:
- path: 'src/CommandLine/bin/Release/*.nupkg'
name: NuGetPackages
- path: 'src/CommandLine/bin/Release/*.snupkg'
name: symbol
on_failure:
- cmd: |
tree /f /a >files.lst
appveyor PushArtifact .\files.lst -DeploymentName "Failed Build File Listing"
for:
-
matrix:
only:
- image: Visual Studio 2019
deploy:
- provider: GitHub
auth_token:
secure: hVyVwHl0JiVq0VxXB4VMRWbUtrGclIzadfnWFcWCQBLvbgMLahLBnWlwGglT63pZ
artifact: 'NuGetPackages'
prerelease: false
force_update: true #fsharp package runs as separate build job, so have to force_update to add fsharp.nuget added
on:
APPVEYOR_REPO_TAG: true
- provider: NuGet
api_key:
secure: Ab4T/48EyIJhVrqkfKdUxmHUtseEVuXuyrGACxZ0KN35rb/BzABlBM2YjZojicvT
artifact: 'NuGetPackages'
on:
APPVEYOR_REPO_TAG: true