-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
34 lines (34 loc) · 968 Bytes
/
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
version: '{build}'
image: Visual Studio 2017
init:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq "true") {
$env:ARTIFACT_VERSION = "$env:APPVEYOR_REPO_TAG_NAME"
} else {
$env:ARTIFACT_VERSION = "1.0.0"
}
before_build:
- cmd: dotnet --version
- cmd: dotnet restore ./src/Hosting.Extensions.Quartz.csproj --verbosity m
build_script:
- cmd: dotnet build -c Release ./src/Hosting.Extensions.Quartz.csproj
artifacts:
- path: './src/bin/Release/*.nupkg'
clone_depth: 1
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: $(ARTIFACT_VERSION)
package_version: $(ARTIFACT_VERSION)
assembly_version: $(ARTIFACT_VERSION)
file_version: $(ARTIFACT_VERSION)
informational_version: $(ARTIFACT_VERSION)
test_script:
- cmd: dotnet restore ./tests/Hosting.Extensions.Quartz.Tests.csproj --verbosity m
- cmd: cd tests
- cmd: dotnet test
deploy:
- provider: Environment
name: Quartz
on:
APPVEYOR_REPO_TAG: true