-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathappveyor.yml
More file actions
24 lines (23 loc) · 653 Bytes
/
appveyor.yml
File metadata and controls
24 lines (23 loc) · 653 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
version: 0.0.0.{build}
image: Visual Studio 2022
install:
- ps: |
$tagVersion = $($(git describe $(git rev-list --tags --max-count=1 origin/master)).TrimStart("v"))
if ($env:appveyor_repo_tag -eq "true")
{
echo "Build triggered by a tag"
$version = $tagVersion
}
else
{
$version = "$tagVersion.$env:appveyor_build_number"
}
echo $version
Update-AppveyorBuild -Version $version
& dotnet tool install -g dotnet-script
build_script:
- cmd: dotnet script build.csx -- package --version=%APPVEYOR_BUILD_VERSION%
test_script:
- cmd: dotnet script build.csx -- test
artifacts:
- path: '**/*.nupkg'