Skip to content

Commit a63d7af

Browse files
authored
refactor: modernize appveyor-ci resource (#80)
* refactor: modernize appveyor-ci resource * fix(ci): satisfy markdownlint and yamllint
1 parent a4a0569 commit a63d7af

File tree

26 files changed

+203
-112
lines changed

26 files changed

+203
-112
lines changed

.kitchen.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

Berksfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source 'https://supermarket.chef.io'
22

3-
cookbook 'test', path: 'test/fixtures/cookbooks/test'
3+
cookbook 'test', path: 'test/cookbooks/test'
44

55
metadata

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
77

88
## [0.2.11](https://github.com/sous-chefs/appveyor-ci/compare/0.2.10...v0.2.11) (2025-10-14)
99

10-
1110
### Bug Fixes
1211

13-
* **ci:** Update release workflow ([#71](https://github.com/sous-chefs/appveyor-ci/issues/71)) ([660220a](https://github.com/sous-chefs/appveyor-ci/commit/660220afd12867b079ac635db7b770888af3d0e9))
12+
- **ci:** Update release workflow ([#71](https://github.com/sous-chefs/appveyor-ci/issues/71)) ([660220a](https://github.com/sous-chefs/appveyor-ci/commit/660220afd12867b079ac635db7b770888af3d0e9))
1413

1514
## 0.2.10 - *2025-09-04*
1615

LIMITATIONS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# AppVeyor Deployment Agent Limitations
2+
3+
- The AppVeyor deployment agent is Windows-only; this cookbook should only advertise and test Windows support.
4+
- Installation depends on the public MSI download endpoint at `https://www.appveyor.com/downloads/deployment-agent/<version>/AppveyorDeploymentAgent.msi`.
5+
- The resource expects an AppVeyor deployment access key and deployment group at converge time.

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment:
1111
user_password: Pass@word1
1212

1313
matrix:
14-
- ruby_version: "23"
14+
- ruby_version: "23"
1515

1616
clone_folder: c:\GitHub\chef-appveyor-ci
1717
clone_depth: 1
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# appveyor-ci_appveyor_agent
2+
3+
Installs the AppVeyor deployment agent MSI on Windows hosts.
4+
5+
## Actions
6+
7+
| Action | Description |
8+
|--------|-------------|
9+
| `:install` | Installs the AppVeyor deployment agent (default). |
10+
11+
## Properties
12+
13+
| Property | Type | Default | Description |
14+
|----------|------|---------|-------------|
15+
| `version` | String | name property | AppVeyor deployment agent version to install. |
16+
| `access_key` | String | `nil` | Deployment access key used by the agent. |
17+
| `environment_access_key` | String | `nil` | Alias for `access_key` for compatibility with existing examples. |
18+
| `deployment_group` | String | required | AppVeyor deployment group name. |
19+
| `installer_url` | String | derived from `version` | Custom MSI download URL. |
20+
| `install_path` | String | `'C:\\Program Files (x86)\\AppVeyor\\DeploymentAgent\\Appveyor.DeploymentAgent.Service.exe'` | Expected installation path. |
21+
22+
## Examples
23+
24+
### Install the latest agent
25+
26+
```ruby
27+
appveyor_agent 'latest' do
28+
access_key 'abc123'
29+
deployment_group 'test'
30+
end
31+
```
32+
33+
### Install a specific version
34+
35+
```ruby
36+
appveyor_agent '3.12.0' do
37+
environment_access_key 'abc123'
38+
deployment_group 'production'
39+
end
40+
```

kitchen.exec.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
---
22
driver: { name: exec }
33
transport: { name: exec }
4-
5-
platforms:
6-
- name: macos-latest
7-
- name: windows-latest

kitchen.global.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,3 @@ provisioner:
1313

1414
verifier:
1515
name: inspec
16-
17-
platforms:
18-
- name: almalinux-8
19-
- name: almalinux-9
20-
- name: amazonlinux-2023
21-
- name: centos-7
22-
- name: centos-stream-8
23-
- name: centos-stream-9
24-
- name: debian-9
25-
- name: debian-10
26-
- name: debian-11
27-
- name: debian-12
28-
- name: fedora-latest
29-
- name: opensuse-leap-15
30-
- name: oraclelinux-7
31-
- name: oraclelinux-8
32-
- name: oraclelinux-9
33-
- name: rockylinux-8
34-
- name: rockylinux-9
35-
- name: ubuntu-18.04
36-
- name: ubuntu-20.04
37-
- name: ubuntu-22.04
38-
- name: ubuntu-23.04

kitchen.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
verifier:
3+
name: inspec
4+
5+
x-run_lists:
6+
default: &default_run_list
7+
- recipe[test::default]
8+
versioned: &versioned_run_list
9+
- recipe[test::versioned]
10+
11+
x-verifiers:
12+
default: &default_verifier
13+
inspec_tests:
14+
- path: test/integration/default
15+
versioned: &versioned_verifier
16+
inspec_tests:
17+
- path: test/integration/versioned
18+
19+
platforms:
20+
- name: windows-latest
21+
22+
suites:
23+
- name: default
24+
run_list: *default_run_list
25+
verifier: *default_verifier
26+
27+
- name: versioned
28+
run_list: *versioned_run_list
29+
verifier: *versioned_verifier

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
issues_url 'https://github.com/sous-chefs/appveyor-ci/issues'
77
source_url 'https://github.com/sous-chefs/appveyor-ci'
88
version '0.2.11'
9-
chef_version '>= 13.0'
9+
chef_version '>= 15.3'
1010

1111
supports 'windows'

0 commit comments

Comments
 (0)