inspec/kitchen/rake-tests/bootstrap.sh
Lamont Granquist bb731fdbc9 Add kitchen rake testing
I'd suggest starting to structure kitchen testing like this with a
directory and subdirs to keep the kitchen testing gems out of the
root Gemfile entirely.

This still mounts the root dir in /inspec so the root Gemfile
is still what you're running the rake tests against.

By having an extra layer of subdirs, then you can split up different
use cases like the rake-testing vs. the audit cookbook testing.
Otherwise it'll be a mess of having to manage different kitchen.yml
files that require way too many different drivers/provisioners/verifiers
2019-05-15 15:30:26 -07:00

12 lines
210 B
Bash

#!/usr/bin/env bash
echo "STARTING PROVISIONER"
export PATH=/opt/inspec/embedded/bin:$PATH
cd /inspec
gem install bundler
bundle install
gem build inspec
gem install ./inspec-*.gem
echo "ENDING PROVISIONER"