nunit.analyzers/appveyor.yml

36 строки
1.1 KiB
YAML

image: Visual Studio 2022
environment:
CLI_CHANNEL: 6.0.1xx
install:
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: Invoke-WebRequest -Uri " https://dot.net/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel $env:CLI_CHANNEL -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
before_build:
- cmd: dotnet --version
build_script:
- ps: .\build.ps1 --target="Appveyor" --configuration="Release" --targetFramework="netstandard2.0"
# disable built-in tests.
test: off
artifacts:
- path: 'package\Release\netstandard2.0\NUnit.Analyzers*.nupkg'
deploy:
- provider: NuGet
server: https://www.myget.org/F/nunit-analyzers/api/v2/package
api_key:
secure: qXsslQqMhHj/tJrUnSJWFBn5OZCmF/Qf+esLbkuzlAvTFWkY9yae5uO80YiJirLA
skip_symbols: true
on:
branch: master
# For PRs, skip the branch run and only run against the virtual PR merge.
skip_branch_with_pr: true