Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Commit

Permalink
Use a test recipe to avoid needed apt
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Sep 30, 2016
1 parent 9e44817 commit fb7c81b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .kitchen.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ platforms:

suites:
- name: default
run_list: build-essential::default
run_list: test::default
17 changes: 3 additions & 14 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ platforms:
- name: centos-6.8
- name: centos-7.2
- name: debian-7.11
run_list: apt::default
- name: debian-8.5
run_list: apt::default
- name: fedora-24
run_list: yum::dnf_yum_compat
- name: freebsd-9.3
Expand All @@ -29,24 +27,17 @@ platforms:
box: omnios/r151014
- name: opensuse-13.2
- name: ubuntu-12.04
run_list: apt::default
- name: ubuntu-14.04
run_list: apt::default
- name: ubuntu-16.04
run_list: apt::default
- name: solaris-11
driver:
box: chef/solaris-11
- name: windows-2008r2-standard
driver:
box: chef/windows-server-2008r2-standard # private
box: chef/windows-server-2008r2-standard # private box in Chef's Atlas account
- name: windows-2012r2
driver_config:
box: chef/windows-server-2012r2-standard
- name: macosx-10.7
driver:
box: chef/macosx-10.7 # private box in Chef's Atlas account
provider: vmware_fusion
- name: macosx-10.10
driver:
box: chef/macosx-10.10 # private box in Chef's Atlas account
Expand All @@ -58,11 +49,9 @@ platforms:

suites:
- name: default
run_list: build-essential::default
run_list: test::default
- name: compile_time
run_list: build-essential::default
run_list: test::default
attributes:
apt:
compile_time_update: true
build-essential:
compile_time: true
2 changes: 1 addition & 1 deletion Berksfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ metadata

group :integration do
cookbook 'yum'
cookbook 'apt'
cookbook 'freebsd'
cookbook 'test', path: 'test/cookbooks/test'
end
1 change: 1 addition & 0 deletions test/cookbooks/test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Test cookbook for build-essential
6 changes: 6 additions & 0 deletions test/cookbooks/test/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name 'test'
maintainer 'Chef Software, Inc.'
maintainer_email '[email protected]'
license 'Apache 2.0'
version '1.0.0'
depends 'build-essential'
3 changes: 3 additions & 0 deletions test/cookbooks/test/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apt_update 'update' if platform_family?('debian')

include_recipe 'build-essential::default'

0 comments on commit fb7c81b

Please sign in to comment.