16 - RELEASE_TAG: 'false'
17 configuration: Release
24 - /^OpenTween.+/ # release tag
30 - RELEASE_TAG: 'false'
34 file: OpenTween\Properties\AssemblyInfo.cs
35 assembly_version: '{version}'
38 path: OpenTween_dev-$(APPVEYOR_BUILD_NUMBER).zip
48 path: $(APPVEYOR_REPO_TAG_NAME).zip
53 project: OpenTween.sln
57 - '%UserProfile%\.nuget\packages -> OpenTween\OpenTween.csproj, OpenTween.Tests\OpenTween.Tests.csproj'
60 - git config --global core.autocrlf true
67 set altCoverVersion=8.6.61
68 set xunitVersion=2.4.2
69 set targetFramework=net48
70 set nugetPackages=%UserProfile%\.nuget\packages
72 %nugetPackages%\altcover\%altCoverVersion%\tools\net472\AltCover.exe --inputDirectory .\OpenTween.Tests\bin\%CONFIGURATION%\%targetFramework%\ --outputDirectory .\__Instrumented\ --assemblyFilter "?^OpenTween(?!\.Tests)" --typeFilter "?^OpenTween\." --fileFilter "\.Designer\.cs" --visibleBranches
74 %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
78 Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
79 .\codecov.exe -f coverage.xml
81 $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\'
82 $binDir = '.\OpenTween\bin\' + $env:CONFIGURATION + '\net48\'
83 if ($env:RELEASE_TAG -eq 'true') {
84 $destPath = $env:APPVEYOR_REPO_TAG_NAME + '.zip'
86 $destPath = 'OpenTween_dev-' + $env:APPVEYOR_BUILD_NUMBER + '.zip'
88 if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -ne $null) {
89 $headCommit = $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT
93 .\tools\build-zip-archive.ps1 -BinDir $binDir -DestPath $destPath -HeadCommit $headCommit
94 Copy-Item ($binDir + 'OpenTween.pdb') -Destination '.\'
96 # vim: et fenc=utf-8 sts=2 sw=2 ts=2