-
Notifications
You must be signed in to change notification settings - Fork 60
/
.kitchen.appveyor.yml
82 lines (79 loc) · 2.1 KB
/
.kitchen.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
---
driver:
name: proxy
host: localhost
reset_command: "exit 0"
username: <%= ENV["winrm_user"] %>
password: <%= ENV["winrm_pass"] %>
port: <%= ENV["winrm_port"] %>
provisioner:
name: salt_solo
salt_version: 2017.7.4
init_environment: |
Clear-Host
$AddedLocation ="c:\salt"
$Reg = "Registry::HKLM\System\CurrentControlSet\Control\Session Manager\Environment"
$OldPath = (Get-ItemProperty -Path "$Reg" -Name PATH).Path
$NewPath= $OldPath + ';' + $AddedLocation
Set-ItemProperty -Path "$Reg" -Name PATH -Value $NewPath
cmd.exe /c "c:\python27\python.exe -m pip install pip==9.0.3 2>&1"
is_file_root: true
salt_copy_filter:
- .bundle
- .git
- .gitignore
- .kitchen
- .kitchen.appveyor.yml
- Gemfile
- Gemfile.lock
- README.rst
- .travis.yml
state_top:
base:
"*":
- git.salt
platforms:
- name: windows-2012R2
transport:
name: winrm
username: <%= ENV["winrm_user"] %>
password: <%= ENV["winrm_pass"] %>
port: <%= ENV["winrm_port"] %>
suites:
- name: py2
provisioner:
pillars:
top.sls:
base:
"os:Windows":
- match: grain
- windows
"*":
- jenkins
jenkins.sls:
<% if ENV["GITHUB_BRANCH"].nil? %>
test_git_commit: <%= ENV['APPVEYOR_REPO_BRANCH'] == 'master' ? 'develop' : ENV['APPVEYOR_REPO_BRANCH'] %>
<% else %>
test_git_commit: <%= ENV['GITHUB_BRANCH'] %>
<% end %>
windows.sls:
virtualenv_path: 'c:\Python27\Scripts\pip.exe'
- name: py3
provisioner:
pillars:
top.sls:
base:
"os:Windows":
- match: grain
- windows
"*":
- jenkins
jenkins.sls:
<% if ENV["GITHUB_BRANCH"].nil? %>
test_git_commit: <%= ENV['APPVEYOR_REPO_BRANCH'] == 'master' ? 'develop' : ENV['APPVEYOR_REPO_BRANCH'] %>
<% else %>
test_git_commit: <%= ENV['GITHUB_BRANCH'] %>
<% end %>
windows.sls:
virtualenv_path: 'c:\Python35\Scripts\pip.exe'
py3: true