-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
41 lines (41 loc) · 1.14 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
version: '7.4.{build}'
image: Visual Studio 2019
branches:
only:
- master
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
# Install repo specific stuff here
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
before_build:
# Display .NET Core version
- cmd: dotnet --version
# Display minimal restore text
- cmd: dotnet restore ./src/TeeSquare.sln --verbosity m
build_script:
# Build lib
- cmd: dotnet build ./src/TeeSquare.sln --configuration=release --no-restore
test_script:
# run the unit tests
- cmd: dotnet test ./src/TeeSquare.sln --no-restore --configuration=release --no-build
after_build:
# For once the build has completed
- cmd: dotnet pack ./src/TeeSquare.sln --configuration=release --no-restore --no-build
artifacts:
- path: '\src\*\bin\release\*.nupkg'
name: Package
type: NugetPackage
clone_depth: 1
on_finish :
# any cleanup in here
deploy:
provider: NuGet
api_key:
secure: vKRF2m6QY8J8SUQcrsUnvInphP1Oa7ug0gWrQEt4NbmLJE53qQw4VMT7d9jHZFXS
skip_symbols: true
artifact: /.*\.nupkg/