-
Notifications
You must be signed in to change notification settings - Fork 481
/
appveyor.yml
52 lines (40 loc) · 1.33 KB
/
appveyor.yml
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
#version should be only changed with RELEASE eminent, see RELEASE.md
version: 2.9.1-ci-{build}
image: Visual Studio 2019
clone_depth: 1
pull_requests:
do_not_increment_build_number: true
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) }
Update-AppveyorBuild -Version $ver
}
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%
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%
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"
deploy:
- provider: NuGet
api_key:
secure: llMIgYMuLHh9thyKMEAmkWraTaA9Zvcm1F8/yRwm0HCiPIt/ehR/GI4kJKyMTPyf
artifact: /.*(\.|\.s)nupkg/
on:
APPVEYOR_REPO_TAG: true