-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
96 lines (74 loc) · 2.44 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Reference: https://www.appveyor.com/docs/appveyor-yml/
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
# Skipping commits affecting specific files (GitHub only). More details here: /docs/appveyor-yml
skip_commits:
files:
- docs/*
- '**/*.md'
- '*.md'
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# enable service required for build/tests
services:
- mssql2016 # start SQL Server 2016 Express
pull_requests:
do_not_increment_build_number: true
# enable patching of SolutionInfo.* files
assembly_info:
patch: true
file: '**\SolutionInfo.*'
assembly_version: "2.2.{build}"
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
before_build:
- nuget restore
build:
parallel: true # enable MSBuild parallel builds
verbosity: minimal # MSBuild verbosity level
project: Gringotts.sln # path to Visual Studio solution or project
#---------------------------------#
# tests configuration #
#---------------------------------#
# scripts to run before tests
before_test:
- ps: >-
$name = "GringottsTest"
$instace = "(local)\SQL2016"
$connection_string = "Server=$instance; Database=$name; Trusted_connection=true"
if(Test-Path $env:APPVEYOR_BUILD_FOLDER) {
Get-ChildItem $env:APPVEYOR_BUILD_FOLDER -r -include *Tests.dll.config |
% {
$config = (Get-Content $_.Fullname) -as [xml]
$config.SelectSingleNode('//connectionStrings/add[@name="DefaultConnection"]').connectionString = $connection_string
$config.Save($_.FullName)
}
}
test:
assemblies:
- Wiz.Gringotts.UIWeb.Tests.dll
categories:
except:
- ActiveDirectory
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
- provider: Slack
auth_token:
secure: 7aiC1DmkTyfYpRtskjpTsTajFolPBOvzuFf1pRlcF0IOPzQzvhfG5LJpZ6iTXM5W
channel: gringotts