-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
152 lines (124 loc) · 4.29 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
---
#---------------------------------#
# general configuration #
# set clone depth
clone_depth: 1 # clone entire repository history if not defined
image:
- Visual Studio 2019
# build cache to preserve files/folders between builds
# cache:
# - packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
# - '%LocalAppData%\NuGet\Cache' # NuGet < v3
# - '%LocalAppData%\NuGet\v3-cache' # NuGet v3
# Automatically register private account and/or project AppVeyor NuGet feeds.
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true # disable publishing of .nupkg artifacts to account/project feeds for pull request builds
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
# Build settings, not to be confused with "before_build" and "after_build".
# "project" is relative to the original build directory and not influenced by directory changes in "before_build".
build:
parallel: true # enable MSBuild parallel builds
project: RQL.NET/RQL.NET.csproj # path to Visual Studio solution or project
publish_aspnet_core: true # Package ASP.NET Core projects
publish_nuget: true # package projects with .nuspec files and push to artifacts
publish_nuget_symbols: true # generate and publish NuGet symbol packages
include_nuget_references: true # add -IncludeReferencedProjects option while packaging NuGet artifacts
# MSBuild verbosity level
verbosity: normal
before_build:
- cmd: >-
dotnet restore RQL.NET/RQL.NET.csproj
# scripts to run after build (working directory and environment changes are persisted from the previous steps)
after_build:
- cmd: >-
dotnet restore tests/tests.csproj
- cmd: >-
dotnet build tests/tests.csproj
# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
before_package:
# to disable automatic builds
#build: off
deploy:
provider: NuGet
api_key:
secure: ZzvMO1Si59F7ksHKjJuEO+rbkKTF3BPWnhfvLW13NRxC6Rvx+FLwODSG9xSSc5UY
on:
APPVEYOR_REPO_TAG: true
#---------------------------------#
# tests configuration #
#---------------------------------#
# to run tests against only selected assemblies and/or categories
# test:
# assemblies:
# only:
# - '**\*tests.dll'
# to run tests against all except selected assemblies and/or categories
#test:
# assemblies:
# except:
# - asm1.dll
# - asm2.dll
#
# categories:
# except:
# - UI
# - E2E
# to run tests from different categories as separate jobs in parallel
#test:
# categories:
# - A # A category common for all jobs
# - [UI] # 1st job
# - [DAL, BL] # 2nd job
# scripts to run before tests (working directory and environment changes are persisted from the previous steps such as "before_build")
# before_test:
# - echo script1
# - ps: Write-Host "script1"
# to run your custom scripts instead of automatic tests
test_script:
- cmd: dotnet test tests/tests.csproj --no-build --no-restore #--test-adapter-path:. --logger:Appveyor Test
# scripts to run after tests
after_test:
# to disable automatic tests
#test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
# pushing entire folder as a zip archive
- path: logs
# pushing all *.nupkg files in build directory recursively
- path: '**\*.nupkg'
#---------------------------------#
# global handlers #
#---------------------------------#
# on successful build
# on_success:
# - do something
# # on build failure
# on_failure:
# - do something
# # after build failure or success
# on_finish:
# - do something
#---------------------------------#
# notifications #
#---------------------------------#
# notifications:
# # Webhook
# - provider: Webhook
# url: http://www.myhook2.com
# headers:
# User-Agent: myapp 1.0
# Authorization:
# secure: GhD+5xhLz/tkYY6AO3fcfQ==
# on_build_success: false
# on_build_failure: true
# on_build_status_changed: true