-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathappveyor.yml
41 lines (34 loc) · 1.1 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
version: "master-{build}"
image:
- Visual Studio 2017 # Windows 2016
- Visual Studio 2015 # Windows 2012R2
environment:
winrm_user: test_user
winrm_pass: Pass@word1
winrm_port: 5985
KITCHEN_YAML: c:\projects\windows-hardening\.kitchen.appveyor.yml
SSL_CERT_FILE: c:\projects\windows-hardening\certs.pem
matrix:
- ruby_version: "24"
clone_folder: c:\projects\windows-hardening
clone_depth: 1
branches:
only:
- master
install:
- systeminfo
- winrm quickconfig -q
- ps: net user /add $env:winrm_user $env:winrm_pass
- ps: net localgroup administrators $env:winrm_user /add
- ps: $env:PATH="C:\Ruby$env:ruby_version\bin;$env:PATH"
- ps: Write-Host $env:PATH
- ps: ruby --version
- ps: gem --version
- ps: gem install bundler --no-document
- ps: '[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12'
- ps: Invoke-WebRequest -Uri https://curl.haxx.se/ca/cacert.pem -OutFile c:\projects\windows-hardening\certs.pem
- ps: bundler --version
build_script:
- bundle install || bundle install || bundle install
test_script:
- bundle exec kitchen verify