-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
43 lines (34 loc) · 1.26 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
# See http://www.appveyor.com/docs/appveyor-yml for many more options
build: off
version: 0.0.{build}
image:
- Visual Studio 2017
# - Ubuntu
install:
- ps: Install-Module Pester -Force -Scope CurrentUser
- ps: Install-Module PSScriptAnalyzer -Force -Scope CurrentUser
- ps: Install-Module dbatools -Force -Scope CurrentUser
# 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 -> appveyor.yml
# clone_folder: c:\github\dbaSecurityScan
clone_depth: 5
environment:
environment: master
version: 0.0.$(appveyor_build_number)
appveyor_rdp_password: h48&jj2)!JHF%d
services:
- mssql2017
# build_script:
# # grab appveyor lab files and needed requirements for tests in CI
# - ps: .\build\appveyor.prep.ps1
# - ps: .\tests\appveyor.SQL2017.ps1
# before_test:
test_script:
# Test with PowerShell and Pester
- ps: .\build\appveyor.pester.ps1
on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))