mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
version: '{branch}-{build}'
|
|
|
|
before_build:
|
|
- nuget restore Mirror/Networking.sln
|
|
|
|
#build:
|
|
# project: Mirror/Networking.sln
|
|
# verbosity: minimal
|
|
|
|
build_script:
|
|
- msbuild Mirror/Networking.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration="Debug-Editor" /ConsoleLoggerParameters:Verbosity=quiet
|
|
- msbuild Mirror/Networking.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration="Debug" /ConsoleLoggerParameters:Verbosity=quiet
|
|
|
|
artifacts:
|
|
- path: Mirror/Output
|
|
name: Mirror
|
|
|
|
image: Visual Studio 2017
|
|
|
|
test_script:
|
|
- Mirror\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -returntargetcode -register:user -target:"nunit3-console.exe" -targetargs:"Mirror\Tests\bin\Debug\Mirror.Tests.dll" -output:"coverage.xml" -filter:"+[Mirror*]* -[Mirror.Tests*]* "
|
|
|
|
after_test:
|
|
- ps: |
|
|
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
|
|
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
|
|
bash codecov.sh -f "coverage.xml"
|
|
|
|
deploy:
|
|
description: 'Mirror $(APPVEYOR_REPO_BRANCH) '
|
|
provider: GitHub
|
|
auth_token:
|
|
secure: G42snf8s5fEos7UfoRSW6eW+8rqGGMH3iw1ZCjRUjcUSKupHUfrKJMXQ11wbjRuW # your encrypted token from GitHub
|
|
artifact: Mirror\Mirror.zip # upload all NuGet packages to release assets
|
|
draft: false
|
|
prerelease: false
|
|
on:
|
|
appveyor_repo_tag: true # deploy on tag push only
|