mirror of
https://github.com/inspec/inspec
synced 2024-12-23 19:43:14 +00:00
3227624617
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
22 lines
595 B
Ruby
22 lines
595 B
Ruby
#
|
|
# Cookbook Name:: build-cookbook
|
|
# Recipe:: unit
|
|
#
|
|
# Copyright (c) 2015 Chef Software Inc., All Rights Reserved.
|
|
# Author:: Dominik Richter
|
|
|
|
include_recipe 'build-cookbook::prepare'
|
|
|
|
home = node['delivery_builder']['repo']
|
|
|
|
{
|
|
'mock test resources' => 'rake test',
|
|
'test resources, main docker images' => 'rake test:resources config=test/test.yaml',
|
|
'test resources, extra docker images' => 'rake test:resources config=test/test-extra.yaml',
|
|
}.each do |title, test|
|
|
execute title do
|
|
command 'bundle exec '+test
|
|
cwd home
|
|
user node['delivery_builder']['build_user']
|
|
end
|
|
end
|