/
appveyor.yml
64 lines (49 loc) · 2.13 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 0.10.5.{build}
# branches to build
branches:
# blacklist
except:
- gh-pages
# Do not build on tags (GitHub only)
skip_tags: true
#---------------------------------#
# environment configuration #
#---------------------------------#
cache:
- packages
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
os: Visual Studio 2017
before_build:
- dotnet --info
- dotnet restore
build:
parallel: true # enable MSBuild parallel builds
project: BenchmarkDotNet.sln # path to Visual Studio solution or project
after_build:
- dotnet pack .\src\BenchmarkDotNet.Core\BenchmarkDotNet.Core.csproj --configuration Release
- dotnet pack .\src\BenchmarkDotNet.Toolchains.Roslyn\BenchmarkDotNet.Toolchains.Roslyn.csproj --configuration Release
- dotnet pack .\src\BenchmarkDotNet\BenchmarkDotNet.csproj --configuration Release
- dotnet pack .\src\BenchmarkDotNet.Diagnostics.Windows\BenchmarkDotNet.Diagnostics.Windows.csproj --configuration Release
#---------------------------------#
# tests configuration #
#---------------------------------#
test_script:
- dotnet test .\tests\BenchmarkDotNet.Tests\BenchmarkDotNet.Tests.csproj --configuration Release --logger:trx;LogFileName=tests-results01.xml
- ps: .\build\uploadtests.ps1 ".\tests\BenchmarkDotNet.Tests\TestResults\tests-results01.xml"
- dotnet test .\tests\BenchmarkDotNet.IntegrationTests\BenchmarkDotNet.IntegrationTests.csproj --configuration Release --logger:trx;LogFileName=tests-results02.xml
- ps: .\build\uploadtests.ps1 ".\tests\BenchmarkDotNet.IntegrationTests\TestResults\tests-results02.xml"
artifacts:
- path: '**\BenchmarkDotNet.*.nupkg' # find all NuGet packages recursively