-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
45 lines (35 loc) · 1.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
version: "master-{build}"
image:
- Visual Studio 2015
- Visual Studio 2017
# Do not build on tags (GitHub only)
skip_tags: true
# Only do branch builds for "master"
branches:
only:
- master
# Faster cloning
clone_folder: c:\projects\chef-pspki
clone_depth: 1
build: off
environment:
winrm_user: test_user
winrm_pass: Pass@word1
winrm_port: 5985
KITCHEN_YAML: c:\projects\chef-pspki\.kitchen.appveyor.yml
SSL_CERT_FILE: c:\opscode\chefdk\embedded\ssl\certs\cacert.pem
matrix:
- ruby_version: "23"
install:
- ps: net user /add $env:winrm_user $env:winrm_pass
- ps: net localgroup administrators $env:winrm_user /add
- ps: . { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -channel current -project chefdk
- ps: c:\opscode\chefdk\bin\chef.bat shell-init powershell | iex
- c:\opscode\chefdk\bin\chef.bat gem install berkshelf # See https://github.com/chef/chef-dk/issues/1155
- ps: chef --version
- ps: cookstyle --version
- ps: foodcritic --version
test_script:
- c:\opscode\chefdk\bin\chef exec rake
- c:\opscode\chefdk\bin\kitchen verify || c:\opscode\chefdk\bin\kitchen verify
deploy: off