-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathappveyor.yml
48 lines (35 loc) · 1.24 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
branches:
only:
- master
version: 1.0.{build}
environment:
machine_user: test_user
machine_pass: Pass@word1
pull_requests:
do_not_increment_build_number: true
skip_tags: true
build:
verbosity: minimal
deploy: off
services:
- mssql2016
cache:
- '%TEMP%\verifier\gems'
init:
- ps: $PSVersionTable
install:
- ps: . { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -channel stable -project chefdk -version 4.6.35
- SET PATH=C:\opscode\chefdk\bin;%PATH%
- ps: secedit /export /cfg $env:temp/export.cfg
- ps: ((get-content $env:temp/export.cfg) -replace ('PasswordComplexity = 1', 'PasswordComplexity = 0')) | Out-File $env:temp/export.cfg
- ps: ((get-content $env:temp/export.cfg) -replace ('MinimumPasswordLength = 8', 'MinimumPasswordLength = 0')) | Out-File $env:temp/export.cfg
- ps: secedit /configure /db $env:windir/security/new.sdb /cfg $env:temp/export.cfg /areas SECURITYPOLICY
- ps: net user /add $env:machine_user $env:machine_pass
- ps: net localgroup administrators $env:machine_user /add
- SET CHEF_LICENSE=accept-silent
before_build:
- copy .kitchen.appveyor.yml .kitchen.yml
build_script:
- chef exec kitchen converge
test_script:
- chef exec inspec exec test/integration/**/*.rb