OSDN Git Service

Reproducible Build に対応
[opentween/open-tween.git] / appveyor.yml
1 version: 2.4.3.{build}
2
3 os: Visual Studio 2019
4
5 assembly_info:
6   patch: true
7   file: OpenTween\Properties\AssemblyInfo.cs
8   assembly_file_version: '{version}'
9
10 build:
11   project: OpenTween.sln
12   verbosity: minimal
13
14 cache:
15   - ./packages/
16
17 init:
18   - git config --global core.autocrlf true
19
20 before_build:
21   - nuget restore
22   - choco install opencover.portable
23
24 test_script:
25   - OpenCover.Console.exe -register -target:"%xunit20%\xunit.console.exe" -targetargs:".\OpenTween.Tests\bin\Debug\net472\OpenTween.Tests.dll -noshadow -appveyor" -filter:"+[OpenTween*]* -[OpenTween.Tests]*" -excludebyfile:"*.Designer.cs" -skipautoprops -hideskipped:All -returntargetcode -output:coverage.xml
26
27 after_test:
28   - npm install codecov --save
29   - ./node_modules/.bin/codecov -f coverage.xml
30
31   - ps: |
32       $env:PATH = $env:PATH + ';C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\'
33       $binDir = '.\OpenTween\bin\' + $env:CONFIGURATION + '\'
34       $objDir = '.\OpenTween\obj\' + $env:CONFIGURATION + '\'
35       $assemblyInfo = '.\OpenTween\Properties\AssemblyInfo.cs'
36       $destPath = 'OpenTween_dev-' + $env:APPVEYOR_BUILD_NUMBER + '.zip'
37       .\tools\build-zip-archive.ps1 -BinDir $binDir -ObjDir $objDir -AssemblyInfo $assemblyInfo -DestPath $destPath
38
39 # vim: et fenc=utf-8 sts=2 sw=2 ts=2