-version: 2.7.0.{build}
+version: 3.6.0.{build}
os: Visual Studio 2022
artifacts:
- name: OpenTween.zip
path: OpenTween_dev-$(APPVEYOR_BUILD_NUMBER).zip
+ - name: OpenTween.pdb
+ path: OpenTween.pdb
- # for release build
matrix:
only:
artifacts:
- name: OpenTween.zip
path: $(APPVEYOR_REPO_TAG_NAME).zip
+ - name: OpenTween.pdb
+ path: OpenTween.pdb
build:
project: OpenTween.sln
test_script:
- cmd: |
- set altCoverVersion=8.2.837
- set xunitVersion=2.4.1
- set targetFramework=net472
+ set altCoverVersion=8.6.61
+ set xunitVersion=2.4.2
+ set targetFramework=net48
set nugetPackages=%UserProfile%\.nuget\packages
- %nugetPackages%\altcover\%altCoverVersion%\tools\%targetFramework%\AltCover.exe --inputDirectory .\OpenTween.Tests\bin\%CONFIGURATION%\%targetFramework%\ --outputDirectory .\__Instrumented\ --assemblyFilter "?^OpenTween(?!\.Tests)" --typeFilter "?^OpenTween\." --fileFilter "\.Designer\.cs" --visibleBranches
+ %nugetPackages%\altcover\%altCoverVersion%\tools\net472\AltCover.exe --inputDirectory .\OpenTween.Tests\bin\%CONFIGURATION%\%targetFramework%\ --outputDirectory .\__Instrumented\ --assemblyFilter "?^OpenTween(?!\.Tests)" --typeFilter "?^OpenTween\." --fileFilter "\.Designer\.cs" --visibleBranches
- %nugetPackages%\altcover\%altCoverVersion%\tools\%targetFramework%\AltCover.exe runner --recorderDirectory .\__Instrumented\ --executable %nugetPackages%\xunit.runner.console\%xunitVersion%\tools\%targetFramework%\xunit.console.exe -- .\__Instrumented\OpenTween.Tests.dll
+ %nugetPackages%\altcover\%altCoverVersion%\tools\net472\AltCover.exe runner --recorderDirectory .\__Instrumented\ --executable %nugetPackages%\xunit.runner.console\%xunitVersion%\tools\net472\xunit.console.exe -- .\__Instrumented\OpenTween.Tests.dll
after_test:
- ps: |
.\codecov.exe -f coverage.xml
- ps: |
$env:PATH = $env:PATH + ';C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\Roslyn\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\'
- $binDir = '.\OpenTween\bin\' + $env:CONFIGURATION + '\'
- $objDir = '.\OpenTween\obj\' + $env:CONFIGURATION + '\'
- $assemblyInfo = '.\OpenTween\Properties\AssemblyInfo.cs'
+ $binDir = '.\OpenTween\bin\' + $env:CONFIGURATION + '\net48\'
if ($env:RELEASE_TAG -eq 'true') {
$destPath = $env:APPVEYOR_REPO_TAG_NAME + '.zip'
} else {
$destPath = 'OpenTween_dev-' + $env:APPVEYOR_BUILD_NUMBER + '.zip'
}
- .\tools\build-zip-archive.ps1 -BinDir $binDir -ObjDir $objDir -AssemblyInfo $assemblyInfo -DestPath $destPath
+ if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -ne $null) {
+ $headCommit = $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT
+ } else {
+ $headCommit = 'HEAD'
+ }
+ .\tools\build-zip-archive.ps1 -BinDir $binDir -DestPath $destPath -HeadCommit $headCommit
+ Copy-Item ($binDir + 'OpenTween.pdb') -Destination '.\'
# vim: et fenc=utf-8 sts=2 sw=2 ts=2