forked from dataplat/dbatools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
101 lines (86 loc) · 3.89 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
101
# See http://www.appveyor.com/docs/appveyor-yml for many more options
configuration: "Debug"
build_script:
- ps: Push-Location bin\projects\dbatools; dotnet build; Pop-Location
after_build:
# Removed to prevent credential exposure
# - ps: Push-AppveyorArtifact msbuild.binlog
# - ps: Push-AppveyorArtifact msbuild.log
version: 0.9.{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
shallow_clone: true
# Set build info
environment:
environment: development
version: 0.9.$(appveyor_build_number)
appveyor_rdp_password: 2odCuiKmYiem
azurepasswd:
secure: ZnF3fWSDfHraMCWlHaekvWrXf3sDqY5M28HMK4236PBbNSoqP29wEhsWMQioSSYGomzgIp9vuiwR8Fc9ViNLoqq0bVcErxEojBFTaPMEzOg2ZwO9OnOTiuUEc5JkoLBv6rEBBWef/DvkFfhr1r0K0xQu6OAPYHVTCRajTZbBRNfCTUM2X2o41t+cSa7681rtnJQnB/8cAfVVnPtJ+97s8w==
azurelegacypasswd:
secure: ud4yZN6kPf+VWhgpgJhbEMCoUJKHTiH9uvv71ybTlu+45+V12M+B07YjysoXGC1qnGBwVy4DDGJfh2VkPWxamK0IpsEimsRS/CCEZlb6unYC4dqEm980QwP4/zwcTSK1
azuredbpasswd:
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\ (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
# 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'))