forked from YAXLib/YAXLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
57 lines (53 loc) · 1.62 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
53
54
55
56
57
version: 4.0.{build}
skip_commits:
files:
- '**/*.md'
environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
matrix:
- job_name: windows
appveyor_build_worker_image: Visual Studio 2022
- job_name: linux
appveyor_build_worker_image: Ubuntu
matrix:
fast_finish: true
for:
-
matrix:
only:
- job_name: windows
init:
# default is: core.autocrlf input
- git config --global core.autocrlf true
build_script:
- ps: dotnet restore --verbosity quiet
- ps: |
$version = "4.2.1"
$versionFile = $version + "." + ${env:APPVEYOR_BUILD_NUMBER}
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
$version = $version + "-PR" + $env:APPVEYOR_PULL_REQUEST_NUMBER
}
dotnet pack YAXLib --verbosity minimal --configuration release /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageOutputPath=../artifacts /p:ContinuousIntegrationBuild=true /p:Version=$version /p:FileVersion=$versionFile
test_script:
- dotnet test YAXLibTests
artifacts:
- path: 'artifacts\*.nupkg'
- path: 'artifacts\*.snupkg'
deploy:
- provider: NuGet
api_key:
secure: faYa17kRmFrHdf2IY0RJETKGUT5m5cWaIyhpz+gn0g+FJcz6ZmOBnfPe08uNc38L
on:
branch: master
-
matrix:
only:
- job_name: linux
build_script:
- dotnet --version
- dotnet restore YAXLib --verbosity quiet
- dotnet build YAXLib -f netstandard2.0
test_script:
- dotnet restore YAXLibTests --verbosity quiet
- dotnet build YAXLibTests -f net6.0
- dotnet test YAXLibTests -f net6.0