-
-
Notifications
You must be signed in to change notification settings - Fork 808
/
appveyor.yml
100 lines (87 loc) · 4.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
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
96
97
98
99
100
# See http://www.appveyor.com/docs/appveyor-yml for many more options
image: Previous Visual Studio 2015
configuration: "Debug"
build_script:
- ps: Set-Service wuauserv -StartupType Manual #otherwise, choco command exits with code 1058
version: 2.1.{build}
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- C:\Program Files\WindowsPowerShell\Modules\PSScriptAnalyzer -> appveyor.yml
- C:\Program Files\WindowsPowerShell\Modules\Pester -> appveyor.yml
- C:\Program Files\WindowsPowerShell\Modules\dbatools.library -> dbatools.psd1
#shallow_clone: true
clone_depth: 100
# Set build info
environment:
environment: development
version: 2.1.$(appveyor_build_number)
appveyor_rdp_password: 2odCuiKmYiem
azurepasswd1:
secure: ZnF3fWSDfHraMCWlHaekvWrXf3sDqY5M28HMK4236PBbNSoqP29wEhsWMQioSSYGomzgIp9vuiwR8Fc9ViNLoqq0bVcErxEojBFTaPMEzOg2ZwO9OnOTiuUEc5JkoLBv6rEBBWef/DvkFfhr1r0K0xQu6OAPYHVTCRajTZbBRNfCTUM2X2o41t+cSa7681rtnJQnB/8cAfVVnPtJ+97s8w==
azurelegacypasswd1:
secure: ud4yZN6kPf+VWhgpgJhbEMCoUJKHTiH9uvv71ybTlu+45+V12M+B07YjysoXGC1qnGBwVy4DDGJfh2VkPWxamK0IpsEimsRS/CCEZlb6unYC4dqEm980QwP4/zwcTSK1
azuredbpasswd1:
secure: JwVx9sps/1g/3eIBRvh21UGRpRAQnXk+7+zZyVmdWL0=
matrix:
- scenario: 2008R2
part: 1/2
main_instance: localhost\SQL2008R2SP2
setup_scripts: \tests\appveyor.SQL2008R2SP2.ps1
- scenario: 2008R2
part: 2/2
main_instance: localhost\SQL2008R2SP2
setup_scripts: \tests\appveyor.SQL2008R2SP2.ps1
- scenario: 2016
part: 1/2
main_instance: localhost\SQL2016
setup_scripts: \tests\appveyor.SQL2016.ps1
- scenario: 2016
part: 2/2
main_instance: localhost\SQL2016
setup_scripts: \tests\appveyor.SQL2016.ps1
- scenario: service_restarts
part: 1/2
main_instance: localhost\SQL2017,localhost\SQL2016
setup_scripts: \tests\appveyor.SQL2017.ps1,\tests\appveyor.SQL2016.ps1
- scenario: service_restarts
part: 2/2
main_instance: localhost\SQL2017,localhost\SQL2016
setup_scripts: \tests\appveyor.SQL2017.ps1,\tests\appveyor.SQL2016.ps1
- scenario: 2016_2017
part: 1/2
main_instance: localhost\SQL2017,localhost\SQL2016
setup_scripts: \tests\appveyor.SQL2017.ps1,\tests\appveyor.SQL2016.ps1
- scenario: 2016_2017
part: 2/2
main_instance: localhost\SQL2017,localhost\SQL2016
setup_scripts: \tests\appveyor.SQL2017.ps1,\tests\appveyor.SQL2016.ps1
- scenario: default
part: 1/2
main_instance: localhost\SQL2008R2SP2,localhost\SQL2016
setup_scripts: \tests\appveyor.SQL2008R2SP2.ps1,\tests\appveyor.SQL2016.ps1
- scenario: default
part: 2/2
main_instance: localhost\SQL2008R2SP2,localhost\SQL2016
setup_scripts: \tests\appveyor.SQL2008R2SP2.ps1,\tests\appveyor.SQL2016.ps1
# Set alternative clone folder
clone_folder: c:\github\dbatools
before_test:
# turn tests directory (at least) to CRLF, as it's faster to do this on the zipball rather than checking out the repo
- cmd: pushd C:\github\dbatools\tests & unix2dos -q *.ps1 & popd
# don't clown -- for some reason it's just not installing the library
- ps: if (-not(Test-Path 'C:\Program Files\WindowsPowerShell\Modules\dbatools.library')) { Install-Module -Name dbatools.library -AllowPrerelease -Force | Out-Null }
# grab appveyor lab files and needed requirements for tests in CI
- ps: .\Tests\appveyor.prep.ps1
# Setting up the local SQL Server environments
- ps: .\Tests\appveyor.sqlserver.ps1
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
test_script:
# Test with native PS version
- ps: .\Tests\appveyor.pester.ps1 -IncludeCoverage
# Collecting results
- ps: .\Tests\appveyor.pester.ps1 -Finalize -IncludeCoverage
after_test:
- ps: .\Tests\appveyor.post.ps1
#on_finish:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))