-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappveyor.yml
More file actions
26 lines (25 loc) · 898 Bytes
/
appveyor.yml
File metadata and controls
26 lines (25 loc) · 898 Bytes
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
init:
- git config --global core.autocrlf input
before_build:
- ps: >-
$buildId = $env:APPVEYOR_BUILD_NUMBER.PadLeft(5, '0');
$versionSuffixPR = "-PR$($env:APPVEYOR_PULL_REQUEST_NUMBER)-$buildId";
$branchName = "$env:APPVEYOR_REPO_BRANCH".Replace("_","");
$versionSuffixBRANCH = "-$branchName-$buildId";
$env:VersionSuffix = if ("$env:APPVEYOR_REPO_TAG" -eq "true") { "" } else { if ("$env:APPVEYOR_PULL_REQUEST_NUMBER") { $versionSuffixPR } else { $versionSuffixBRANCH } };
build_script:
- cmd: echo vs %VersionSuffix%"
- cmd: dotnet restore
- cmd: dotnet test tests\Tests
- cmd: dotnet pack src\FSharpPlus.AspNetCore -o ../../dist -c Release
- cmd: dotnet pack src\FSharpPlus.AspNetCore.Suave -o ../../dist -c Release
test: "off"
version: 0.0.1.{build}
artifacts:
- path: bin
name: bin
- path: dist
name: dist
branches:
only:
- master