forked from puppetlabs/bolt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
109 lines (96 loc) · 2.71 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# See https://www.appveyor.com/docs/lang/ruby/
version: 0.1.0.{build}-{branch}
cache:
- .bundle
matrix:
fast_finish: true
configuration:
- Agentfull
- Agentless
environment:
BOLT_WINRM_USER: roddypiper
BOLT_WINRM_HOST: localhost
BOLT_WINRM_PORT: 5985
BOLT_WINRM_SSL_PORT: 5986
BOLT_WINRM_SMB_PORT: 445
RUBY_VERSION: 25-x64
install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- bundle config --local path .bundle
- bundle install --jobs 3 --retry 3
build: off
for:
-
matrix:
only:
- configuration: Agentless
environment:
BOLT_WINDOWS: true
before_test:
- ps: |
ruby -v
gem -v
bundle -v
type Gemfile.lock
. .\ci.ps1
Install-Puppetfile
$ENV:BOLT_WINRM_PASSWORD = New-RandomPassword
$user = @{ UserName = $ENV:BOLT_WINRM_USER; Password = $ENV:BOLT_WINRM_PASSWORD }
New-LocalAdmin @user
Set-WinRMHostConfiguration
Test-WinRMConfiguration @user | Out-Null
test_script:
- bundle exec rake appveyor
- ps: |
$test_fail = 0
$mods = ("boltlib", "ctrl", "file", "out", "system")
Get-ChildItem bolt-modules -Directory -Include $mods | foreach {
cd $_.FullName;
$test_output = bundle exec rake spec
$r = $LASTEXITCODE
Write-Output $test_output
if($r) {
$test_fail = $r
}
}
if($test_fail) { throw "core module tests failed" }
cd ../..
- ps: |
$test_fail = 0
$mods = ("canary", "aggregate", "puppetdb_fact")
Get-ChildItem modules -Directory -Include $mods | foreach {
cd $_.FullName;
$test_output = bundle exec rake spec
$r = $LASTEXITCODE
Write-Output $test_output
if($r) {
$test_fail = $r
}
}
if($test_fail) { throw "module tests failed" }
cd ../..
-
matrix:
exclude:
- configuration: Agentfull
RUBY_VERSION: 23
- configuration: Agentfull
RUBY_VERSION: 24
environment:
APPVEYOR_AGENTS: true
before_test:
- ps: |
ruby -v
gem -v
bundle -v
type Gemfile.lock
. .\ci.ps1
Install-Puppetfile
$ENV:BOLT_WINRM_PASSWORD = New-RandomPassword
$user = @{ UserName = $ENV:BOLT_WINRM_USER; Password = $ENV:BOLT_WINRM_PASSWORD }
New-LocalAdmin @user
Set-WinRMHostConfiguration
Set-ActiveRubyFromPuppet
Test-WinRMConfiguration @user | Out-Null
test_script:
- bundle exec rake integration:appveyor_agents