geerlingguy / packer-boxes

Jeff Geerling's Packer build configurations for Vagrant boxes.

Home Page:https://app.vagrantup.com/geerlingguy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add some automated tests

geerlingguy opened this issue · comments

Ideally I'd like CI to run each build... but at least with Travis CI I can't run VirtualBox, so I can't build the VM using Packer and/or test with Vagrant.

Failing that, I'd like to test each build configuration (the Packer JSON), and run Ansible Lint on the Ansible playbook, maybe.

A quick test could leverage packer validate. Perhaps something like this: https://github.com/mkinney/packer-boxes/actions

@mkinney yeah, that's perfect! I opened a PR from your fork and will merge once the tests complete (adjusted a couple things for style).

Thanks again!