-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.appveyor.yml
41 lines (41 loc) · 1.51 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: '1.0.0-alpha-{build}'
init:
- git config --global core.autocrlf true
# If there's a tag, use that as the version.
- ps: >-
if($env:APPVEYOR_REPO_TAG -eq "true"){Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"}
# Will build dependencies in release (optimize and portable pdbs) mode:
build_script:
- cmd: for /f %%a in ('dir /b test') do dotnet test -c Release test/%%a/%%a.csproj
after_build:
# packing the current Release build of all projects under src/ except metapackage
- cmd: for /f %%a in ('dir /b src ^| find /v "Greentube.Serialization.All"') do dotnet pack --no-build -c Release src/%%a/%%a.csproj
# pack the metapackage which is based on nuspec
- cmd: nuget pack -version %APPVEYOR_BUILD_VERSION% src\Greentube.Serialization.All\Greentube.Serialization.All.nuspec
# Will build in Coverage mode (full pdbs) and upload coverage to Codecov
on_success:
- ps: .\coverage.ps1 -UploadCodecov
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
test: off
os: Visual Studio 2017
dotnet_csproj:
patch: true
file: 'src\**\*.csproj'
version: '{version}'
package_version: '{version}'
artifacts:
- path: '**\*.nupkg'
name: serialization-nuget-packages
# builds on tags will publish all nupkgs to GitHub as a Draft release
deploy:
release: $(appveyor_build_version)
provider: GitHub
auth_token:
secure: DsKyNX5x7EJOCaRUpZu17qwOfpd/NWaZzmQd0aE62nBAGkqI3nASvvHfvoQTjL8y
artifact: /.*\.nupkg/
draft: true
on:
appveyor_repo_tag: true