-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
75 lines (58 loc) · 2.52 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
version: 2.1.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
skip_commits:
files:
- util/**/*
- docs/**/*
- README.md
- LICENSE
- TODO.txt
- '*.png'
image: Visual Studio 2017
configuration: Release
environment:
COVERALLS_REPO_TOKEN:
secure: sbStw71imn5c9ATjfPvDotgSyReJHM+il7wz8/083Xy3BONRyRxIg0cOjGAr8evI
nuget:
project_feed: true
disable_publish_on_pr: true
build_script:
- ps: >-
cd src
dotnet restore
nuget restore
#dotnet build Tests.net45\Tests.net45.csproj -c Release
dotnet build -c Release /p:Version=$env:APPVEYOR_BUILD_VERSION /p:PackageReleaseNotes="$env:APPVEYOR_PULL_REQUEST_TITLE"
#dotnet pack geschikt\geschikt.csproj -c Release /p:Version=$env:APPVEYOR_BUILD_VERSION /p:PackageReleaseNotes="$env:APPVEYOR_PULL_REQUEST_TITLE" --include-symbols
#dotnet pack -c Release /p:Version=$env:APPVEYOR_BUILD_VERSION /p:PackageReleaseNotes="$env:APPVEYOR_PULL_REQUEST_TITLE" --include-symbols --no-build
#dotnet build geschikt.Standard\geschikt.Standard.csproj -c Release /p:Version=$env:APPVEYOR_BUILD_VERSION /p:PackageReleaseNotes="$env:APPVEYOR_PULL_REQUEST_TITLE"
#dotnet pack geschikt.Standard\geschikt.csproj -c Release /p:Version=$env:APPVEYOR_BUILD_VERSION /p:PackageReleaseNotes="$env:APPVEYOR_PULL_REQUEST_TITLE" --include-symbols
#dotnet pack geschikt.Standard\geschikt.Standard.csproj -c Release /p:Version=$env:APPVEYOR_BUILD_VERSION /p:PackageReleaseNotes="$env:APPVEYOR_PULL_REQUEST_TITLE" --include-symbols
if(Test-Path .\Tools) {
Remove-Item -Recurse -Force .\Tools
}
nuget install coveralls.net -Version 0.7.0 -OutputDirectory Tools
nuget install OpenCover -Version 4.6.519 -OutputDirectory Tools
Tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -oldStyle -target:"nunit3-console.exe" -targetargs:"Tests.net45.dll" -targetdir:Tests.net45\bin\Release\ -output:coverage.xml -filter:"+[*Tests*]*" -searchdirs:Tests.net45\bin\Release\
tools\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe --opencover -i coverage.xml
test: off
artifacts:
- path: src\geschikt\bin\Release\netstandard1.0\geschikt.???
name: netstandard1.0
- path: src\geschikt\bin\Release\netstandard1.3\geschikt.???
name: netstandard1.3
- path: src\geschikt\bin\Release\net45\geschikt.???
name: net45
- path: '**\bin\release\*.nupkg'
name: nuget
deploy:
- provider: NuGet
api_key:
secure: K+dA1tJ3qNFfJ6G484VCFE9igeHb/BGa6tdJVKcaxvHYK6rwPsKrO/c5EahHvxsP
artifact: nuget
on:
branch: master