-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
59 lines (47 loc) · 1.91 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
version: 0.1.{build}
image: Visual Studio 2017
skip_commits:
message: /NO_CI/ # Regex for matching commit message
services:
- mssql2014
- mssql2016
- mssql2017
init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Enumerate installed SQL servers and set them to dynamic ports
- ps: "[Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls, ssl3'; iex ((New-Object Net.WebClient).DownloadString('https://gist.github.com/fireflycons/58dfde9c2fab7de2f4e97668938baebe/raw'))"
environment:
# Uncomment the following to see SQLException detail in Pester test output (or set it in a local environment)
# VerboseTests: 1
APPVEYOR_RDP_PASSWORD:
secure: 6RnJH3K6Be0FsXWvj3TxTQ==
NuGetApiKey:
secure: ZwF65Rl156oMAenHhi8BAY0LySWhhjDvNNt91dpU7D5N88E8ToZyZHCziktv7sz3
matrix:
# - platform: Any CPU
# configuration: Debug
- platform: Any CPU
configuration: Release
matrix:
fast_finish: false
before_build:
- nuget restore
# Download AdventureWorks samples
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/fireflycons/Invoke-SqlExecute/dev/DownloadAdventureWorks.ps1'))
build:
parallel: true
verbosity: normal
# to run tests against only selected assemblies and/or categories
test:
categories:
only:
- Parser
after_test: # Now layout PS Module and run pester tests.
- ps: . .\PrepareAndTestModule.ps1
artifacts:
- path: Firefly.InvokeSqlExecute # Dir populated with files that make up the module
- path: Pester\TestOutputs # Dir containing command output redirected with -OutputFile
deploy_script: # Deploy to PS Gallery
- ps: . .\DeployModule.ps1
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))