inspec/kitchen.vagrant.yml
Tim Smith a05699c5c3 Build the InSpec gem directly in Kitchen so we can run locally
Before you had to kick off kitchen via Rake as the Rake task build the local gem we injected into the cookbook. Now we do it within Test Kitchen using a feature that didn't exist when this was all written. Also --output is your friend and greatly reduces the complexity of all this.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-05-15 15:46:09 -07:00

40 lines
727 B
YAML

---
driver:
name: vagrant
provisioner:
name: chef_solo
verifier:
name: inspec
sudo: true
lifecycle:
pre_converge:
- local: gem build inspec-core.gemspec --output test/cookbooks/os_prepare/files/inspec-core-local.gem
platforms:
- name: centos-6
- name: centos-7
- name: debian-8
- name: debian-9
- name: fedora-28
- name: fedora-29
- name: freebsd-11
- name: opensuseleap-42
- name: opensuseleap-15
- name: ubuntu-16.04
- name: ubuntu-18.04
suites:
- name: default
run_list:
- recipe[os_prepare]
- name: find_files
run_list:
- recipe[os_prepare::find_files]
verifier:
inspec_tests:
- test/integration/find_files
excludes:
- freebsd-11