-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathappveyor.yml
51 lines (47 loc) · 1.73 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
version: '{branch}-{build}'
image: Visual Studio 2019
build: off
skip_branch_with_pr: true
environment:
global:
SALT_FILEROOT: '%APPVEYOR_BUILD_FOLDER%'
SALT_STATE: scap.scan
SALT_URL: https://packages.broadcom.com/artifactory/saltproject-generic/windows/3006.6/Salt-Minion-3006.6-Py3-AMD64-Setup.exe
matrix:
- SALT_PILLARROOT: '%APPVEYOR_BUILD_FOLDER%\tests\pillar\test-scc'
init:
- ps: echo $env:PILLAR_HOME
install:
- ps: '[Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls13"'
- ps: |
$null = `
(new-object net.webclient).DownloadFile(${env:SALT_URL}, `
"${env:temp}\salt-minion.exe")
- ps: |
$null = `
Start-Process -FilePath "${env:temp}\salt-minion.exe" `
-ArgumentList @("/S", "/install-dir=c:\salt") -NoNewWindow -PassThru -Wait
- ps: C:\salt\salt-call.exe --versions-report
test_script:
- ps: |
C:\salt\salt-call.exe --local --retcode-passthrough `
--log-file-level debug `
--file-root="${env:SALT_FILEROOT}" `
--pillar-root="${env:SALT_PILLARROOT}" `
state.show_sls `
"${env:SALT_STATE}"
- ps: |
C:\salt\salt-call.exe --local --retcode-passthrough `
--log-file-level debug `
--file-root="${env:SALT_FILEROOT}" `
--pillar-root="${env:SALT_PILLARROOT}" `
state.sls `
"${env:SALT_STATE}" `
mock=True
notifications:
- provider: Email
on_build_success: False
on_build_failure: True
### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker):
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))