forked from dotnet/BenchmarkDotNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
82 lines (64 loc) · 2.46 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 0.10.2.{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
# scripts that run after cloning repository
install:
# remove this when nuget 3.5 will be available on appveyor
- ps: Start-FileDownload "https://dist.nuget.org/win-x86-commandline/v3.5.0-beta/NuGet.exe"
# enable patching of AssemblyInfo.* files
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
#---------------------------------#
# 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 2015
before_build:
- ps: .\build\version.ps1
- .\nuget.exe restore
- dotnet --info
build:
parallel: true # enable MSBuild parallel builds
project: BenchmarkDotNet.sln # path to Visual Studio solution or project
after_build:
- dotnet pack .\src\BenchmarkDotNet.Core\project.json --configuration Release
- dotnet pack .\src\BenchmarkDotNet.Toolchains.Roslyn\project.json --configuration Release
- dotnet pack .\src\BenchmarkDotNet\project.json --configuration Release
- dotnet pack .\src\BenchmarkDotNet.Diagnostics.Windows\project.json --configuration Release
#---------------------------------#
# tests configuration #
#---------------------------------#
test_script:
- dotnet test .\tests\BenchmarkDotNet.Tests\project.json --configuration Release -xml tests-results01.xml
- ps: .\build\uploadtests.ps1 "tests-results01.xml"
- dotnet test .\tests\BenchmarkDotNet.IntegrationTests\project.json --configuration Release -xml tests-results02.xml
- ps: .\build\uploadtests.ps1 "tests-results02.xml"
test:
assemblies:
- tests\BenchmarkDotNet.IntegrationTests.Classic\bin\$(configuration)\BenchmarkDotNet.IntegrationTests.Classic.exe
artifacts:
- path: '**\BenchmarkDotNet.*.nupkg' # find all NuGet packages recursively