-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
528 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
.vagrant | ||
Berksfile.lock | ||
Gemfile.lock | ||
*~ | ||
*# | ||
.#* | ||
\#*# | ||
.*.sw[a-z] | ||
*.un~ | ||
*.tmp | ||
*.bk | ||
*.bkup | ||
.bundle | ||
.cache | ||
.kitchen | ||
bin | ||
.kitchen.local.yml | ||
Berksfile.lock | ||
Gemfile.lock | ||
|
||
.bundle/ | ||
.cache/ | ||
.kitchen/ | ||
.vagrant/ | ||
.vagrant.d/ | ||
bin/ | ||
tmp/ | ||
vendor/ | ||
.coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
--- | ||
driver_config: | ||
digitalocean_client_id: <%= ENV['DIGITAL_OCEAN_CLIENT_ID'] %> | ||
digitalocean_api_key: <%= ENV['DIGITAL_OCEAN_API_KEY'] %> | ||
aws_access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %> | ||
aws_secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %> | ||
aws_ssh_key_id: <%= ENV['AWS_KEYPAIR_NAME'] %> | ||
|
||
provisioner: | ||
name: chef_zero | ||
require_chef_omnibus: latest | ||
|
||
platforms: | ||
- name: centos-5.8 | ||
driver_plugin: digitalocean | ||
driver_config: | ||
image_id: 1601 | ||
flavor_id: 63 | ||
region_id: 4 | ||
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %> | ||
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %> | ||
|
||
- name: centos-6.4 | ||
driver_plugin: digitalocean | ||
driver_config: | ||
image_id: 562354 | ||
flavor_id: 63 | ||
region_id: 4 | ||
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %> | ||
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %> | ||
|
||
- name: amazon-2013.09 | ||
driver_plugin: ec2 | ||
driver_config: | ||
image_id: ami-3be4bc52 | ||
username: ec2-user | ||
ssh_key: <%= ENV['EC2_SSH_KEY_PATH'] %> | ||
|
||
- name: fedora-19 | ||
driver_plugin: digitalocean | ||
driver_config: | ||
image_id: 696598 | ||
flavor_id: 63 | ||
region_id: 4 | ||
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %> | ||
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %> | ||
|
||
- name: debian-70 | ||
driver_plugin: digitalocean | ||
driver_config: | ||
image_id: 308287 | ||
flavor_id: 63 | ||
region_id: 4 | ||
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %> | ||
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %> | ||
run_list: | ||
- recipe[apt] | ||
|
||
- name: ubuntu-1004 | ||
driver_plugin: digitalocean | ||
driver_config: | ||
image_id: 14097 | ||
flavor_id: 63 | ||
region_id: 4 | ||
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %> | ||
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %> | ||
run_list: | ||
- recipe[apt] | ||
|
||
- name: ubuntu-1204 | ||
driver_plugin: digitalocean | ||
driver_config: | ||
image_id: 1505447 | ||
flavor_id: 63 | ||
region_id: 4 | ||
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %> | ||
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %> | ||
run_list: | ||
- recipe[apt] | ||
|
||
- name: ubuntu-1310 | ||
driver_plugin: digitalocean | ||
driver_config: | ||
image_id: 1505699 | ||
flavor_id: 63 | ||
region_id: 4 | ||
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %> | ||
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %> | ||
run_list: | ||
- recipe[apt] | ||
|
||
|
||
suites: | ||
- name: default | ||
run_list: fake::default | ||
- name: create | ||
run_list: fake::create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,74 @@ | ||
language: ruby | ||
bundler_args: --without kitchen_vagrant --without development | ||
rvm: | ||
- 1.9.3 | ||
- 2.0.0 | ||
script: bundle exec rake travis:ci | ||
- 2.1.0 | ||
before_install: | ||
- echo -n $DO_KEY_CHUNK_{0..30} >> ~/.ssh/id_do.base64 | ||
- cat ~/.ssh/id_do.base64 | tr -d ' ' | base64 --decode > ~/.ssh/id_do.pem | ||
- echo -n $EC2_KEY_CHUNK_{0..30} >> ~/.ssh/id_ec2.base64 | ||
- cat ~/.ssh/id_ec2.base64 | tr -d ' ' | base64 --decode > ~/.ssh/id_ec2.pem | ||
script: | ||
- bundle exec rake travis | ||
after_script: | ||
- bundle exec kitchen destroy | ||
env: | ||
global: | ||
- secure: CnOrxu3bu+f4xPU5TzSNtIPldGA2lP5Dm2IfZUDRFHuT4bpF4bDnEZBY4pB5uEQAaMLRbnMiuyq2adMgiT5j6zv0RXf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ASAMVvFIGhmfUlipqdZjBH1uE42QbL0siauFzPRzulB1lIvCYa3Ae1tML5Me6GN7Z0BtoKmDp5ZdQ8YxvsoK9tUAkcVgjLAURMbFjlIlFR0Qz5VfmMXzQ= | ||
- secure: AFJsxNkNQdJUK7Q0xecDAiMtiXcPZEey+40SQIatAmsGfK2ye+c/elljfUoMsrAZv9oiye5c2FUFQ7Jx2ExWn6TRYEETIpm59C5qQlY4frd/G+Qcg736YXuoKSps43P4KU8jKLm/95uROFQxJa97UXzXC7eaTQY61zuCDmJCrns= | ||
- secure: rOj/ZR8/iCMEs4QdEB0jTG5LAlA0AGQDRraU/hmVYbxjyJeX3Aofd9qqy/+4LJp5voc79lHVvSMugiIW+dnEXJj0V+nQmAkveauLt77nTUOJ2s3y4FJIxMs1Tv6WidgK9H03huKEcC2iqSEKEQj4ENl2gfu6D3rgghLGa3C89o0= | ||
- secure: Aa4QZpA4f9oJ7E435fV5g+E8E2ZugqMxVbSZBtlysFpHCoIZ2RlVS9FBHabtMue5qu8ROlz4Vz2PQgYZPJHKIuFO+/E/mhUM6QDUIaKDF4YzHcLBRdVwrbv/PIaiImlhhp369S6qAdspZPM8BUbpZPorzcggt2SipDxwem+vCow= | ||
- secure: HXCW21YlHyDusEL9sBENdJYqBFiVQsCCFZifow/Zw3RPPg79UmE7dno+bxUFQvxNcgGsk7KV2FlAyz4LamNpBtslbV/ajlOGKj8rEhDNs8b8CFIIeWknkSXQC2na0DBx+oBQQ8w8fnRGigLE2qr4YPUxQv0xvmNQrlpYVeYG0Tc= | ||
- secure: P35omyMrK3/Afkp9wHOExvZekb+7EHrE87TxCMn3kM4DjE0um5lPxeBqA60cDXvsvhLwoWYZhVmIFDC7oIwqpr7xLamr++k+uDa0kAjmaS7eJCDfGvIvJrCzUApRKBgBd2gIWNp/SNbO/z8bnslc0Q6TPb7o7KsSjldPLMmYyfg= | ||
- secure: MtPnqam0ye3Y4CfMC4F1TfFlKnjBtBdw/xOXq+zUY/mqGXsllCDJcOe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zfG7PR96wnBbnPB/4FVXK9eVPWlntBPjHcjR2lBB9Iblg8Sep17gEhhVP5jgdttifwZu5Eo5N+BZyqt8tusMKbnig5XXcBKcmeLvxjNJSOlwEXP9sHGF+4+ZxQDT8XuQ8zFSBrAszc= | ||
- secure: CnPRVLWYGTiavJDjHDZg3+WCQuk07r+LWfKSFrQVJwlWsEaJVlSbA9IeTQk6W+APkhQ/XFICHXpxw77vv1SmkroHaMVtFfBV2TUOtDFRnczK+4U+76xSUYX0RSWTddNsySQCk8VMHY8wGf4xl5nG0o0uANjWHW4wXbT7pMoIe6Q= | ||
- secure: uBKVV3CFdrfz/YRoUvblseZ+8DiLlA/nJ3eLzx584DcpObc9/TKhA1h9VBERTodeMqaNDCdb1lQmz8er5J2WqkdO6cCiOLAyB9Iv+glL7bMLVOLxPOxqzCr1x/PVqtS3HZyMA1KZuHwDP5gC3UONA8sa0QYp4x56nfqx9cp0Xns= | ||
- secure: FIcWUmmkFqwhDWnUDQsE4AugX7JTO+mqc5REMQD28Twha3qxMIsEqINvIeL1MmTJ4f6ywemust2UMCibKP+xhu+OLb70E93znuKcWWZv7QwuAfrIwdZ3A+OwoFfseD3VaWkFgzAT+p+eNCCXJ/J3H1a4uTJF38eCD9GXIgKNNRA= | ||
- secure: OblMyUxSNgsbaM9UJ2kISZuEew9hyWYXfc2d5yklv/mYQODmpBMrTebErtcu5Bn4JmtPWU29cPNV2+cDcrtUqXltQo5ENgMSK9Ten7EjM7NuANYuCkOx96ayFM9fru3mxhn6hLgGWJf5Mf6dqTj5zThOKYMldwRl0sPbsDxF5To= | ||
- secure: x1gENY9hXjmH5mLl5brCzl80YWs/SkNr2MGLQ79pX5y6+Wz62x3rmc2HQGegEeGIZqzbfWGGa1TrCgk6c/n7hvPa/j4snAGpBMsIjlHUJ1kCavDjclkuNooq4sIUBO8RICpvuE6rSE7pwQ8F6C9kiM8P8oQkQft9E4xD2JSiPB8= | ||
- secure: sThoXDh92WmlAbdWrJPFL73Rp5a37H/DU8pdGo26UAg1bHhOdlD9VP6cId1VU7l2FtVKqab8DK4msx8Brc2x1NmAs34kCp+CP6xSobciB5QC6fuFXCkw2c8riATWBzy7XtixjcJBMyQbIHD9nNNujop38gOjHyhiVSKETc0lRf8= | ||
- secure: n0aPp2ZpeZ+/4+dwuWeV5KBcnL25ZI/DIuksJL/Q9aGkeMoLN6y/YcuY8L2Ec4cN+u9WVJ0H/aVL+3lNTmG8nh0S0cR3hoY2WubUmAAiSm+aAPDrVgLGZV/8TiB4qXGv/lvvsUco8bcSoRKo5bWYwbpbJS5Uq73G19O9p2w3ztU= | ||
- secure: jyDgwz8hsfveiSGEZ+ebjD/HxGX52hdirpSZhJFHuxnJ3yWw2tLwEm/x2oPuwH/8qVHF2tD8ZuJ6+J6OUH2Tf+ZkD22GAmhexuSO8BpNjKxz7hMC3+woWuBwTvZFwosvt9hOcyMESJ4lX8pl+SezWDz0yzhdIc1y2+a6JvABUGM= | ||
- secure: sm19LGQ8pDNHJlGMjTcRFjRh+wYmfiuH1aa6RVcy+R0YbM8By/Rwwunhr055OL1BNAhkavjDJpBv8r00m8VjOS5UgfCbBWcfSPpRKKPVMh6OsoDGrj7nM5rUlXsIQd+63w3+dN5j8UBMICi50ij93fWJtD5JvPjcnOY6nh7eaY8= | ||
- secure: DJCweA/4YuyX1xXiLdccjy4rFWtNdctcK6A3ZfWTyxxShkYQN8GCZM7pFY77ubEPSOk08AeYVRAW9hgG/6xSA/tGCIuUaxpFh0/n9/+sUcgMhy5629P+Tv3YL8OSfRGTckHzG5Lmq0C6BnT0MGaPb6bp63P38Ye3QsNOhpWv3ds= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,37 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'berkshelf', '~> 2.0' | ||
gem 'chefspec', '~> 3.1' | ||
gem 'foodcritic', '~> 3.0' | ||
gem 'rubocop', '~> 0.18' | ||
|
||
group :integration do | ||
gem 'test-kitchen', '~> 1.1' | ||
gem 'kitchen-vagrant', '~> 0.14' | ||
group :lint do | ||
gem 'foodcritic', '~> 3.0' | ||
gem 'rubocop', '~> 0.18' | ||
gem 'rainbow', '< 2.0' | ||
gem 'rake' | ||
end | ||
|
||
group :unit do | ||
gem 'berkshelf', '~> 3.0.0.beta6' | ||
gem 'chefspec', '~> 3.2' | ||
end | ||
|
||
group :kitchen_common do | ||
gem 'test-kitchen', '~> 1.2' | ||
end | ||
|
||
group :kitchen_vagrant do | ||
gem 'kitchen-vagrant', '~> 0.11' | ||
end | ||
|
||
group :kitchen_cloud do | ||
gem 'kitchen-digitalocean' | ||
gem 'kitchen-ec2' | ||
end | ||
|
||
group :development do | ||
gem 'ruby_gntp' | ||
gem 'growl' | ||
gem 'rb-fsevent' | ||
gem 'guard', '~> 2.4' | ||
gem 'guard-kitchen' | ||
gem 'guard-foodcritic' | ||
gem 'guard-rspec' | ||
gem 'guard-rubocop' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# A sample Guardfile | ||
# More info at https://github.com/guard/guard#readme | ||
|
||
# guard 'kitchen' do | ||
# watch(%r{test/.+}) | ||
# watch(%r{^recipes/(.+)\.rb$}) | ||
# watch(%r{^attributes/(.+)\.rb$}) | ||
# watch(%r{^files/(.+)}) | ||
# watch(%r{^templates/(.+)}) | ||
# watch(%r{^providers/(.+)\.rb}) | ||
# watch(%r{^resources/(.+)\.rb}) | ||
# end | ||
|
||
guard 'foodcritic', cookbook_paths: '.', all_on_start: false do | ||
watch(%r{attributes/.+\.rb$}) | ||
watch(%r{providers/.+\.rb$}) | ||
watch(%r{recipes/.+\.rb$}) | ||
watch(%r{resources/.+\.rb$}) | ||
watch('metadata.rb') | ||
end | ||
|
||
guard 'rubocop', all_on_start: false do | ||
watch(%r{attributes/.+\.rb$}) | ||
watch(%r{providers/.+\.rb$}) | ||
watch(%r{recipes/.+\.rb$}) | ||
watch(%r{resources/.+\.rb$}) | ||
watch('metadata.rb') | ||
end | ||
|
||
guard :rspec, cmd: 'bundle exec rspec', all_on_start: false, notification: false do | ||
watch(%r{^libraries/(.+)\.rb$}) | ||
watch(%r{^spec/(.+)_spec\.rb$}) | ||
watch(%r{^(recipes)/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { 'spec' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,62 @@ | ||
require 'bundler/setup' | ||
require 'rspec/core/rake_task' | ||
require 'rubocop/rake_task' | ||
require 'foodcritic' | ||
require 'kitchen' | ||
|
||
# Style tests. Rubocop and Foodcritic | ||
namespace :style do | ||
require 'rubocop/rake_task' | ||
desc 'Run Ruby style checks' | ||
Rubocop::RakeTask.new(:ruby) | ||
|
||
require 'foodcritic' | ||
desc 'Run Chef style checks' | ||
FoodCritic::Rake::LintTask.new(:chef) | ||
FoodCritic::Rake::LintTask.new(:chef) do |t| | ||
t.options = { | ||
fail_tags: ['any'], | ||
tags: [ | ||
'~FC005', | ||
'~FC017' | ||
] | ||
} | ||
end | ||
end | ||
|
||
desc 'Run all style checks' | ||
task style: ['style:chef', 'style:ruby'] | ||
|
||
require 'kitchen' | ||
desc 'Run Test Kitchen integration tests' | ||
task :integration do | ||
Kitchen.logger = Kitchen.default_file_logger | ||
Kitchen::Config.new.instances.each do |instance| | ||
instance.test(:always) | ||
end | ||
end | ||
# Rspec and ChefSpec | ||
desc "Run ChefSpec examples" | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:unit) do |t| | ||
t.rspec_opts = ['--color --format progress'] | ||
# Integration tests. Kitchen.ci | ||
namespace :integration do | ||
desc 'Run Test Kitchen with Vagrant' | ||
task :vagrant do | ||
Kitchen.logger = Kitchen.default_file_logger | ||
Kitchen::Config.new.instances.each do |instance| | ||
instance.test(:always) | ||
end | ||
end | ||
|
||
desc 'Run Test Kitchen with cloud plugins' | ||
task :cloud do | ||
run_kitchen = true | ||
if ENV['TRAVIS'] == 'true' && ENV['TRAVIS_PULL_REQUEST'] != 'false' | ||
run_kitchen = false | ||
end | ||
|
||
if run_kitchen | ||
Kitchen.logger = Kitchen.default_file_logger | ||
@loader = Kitchen::Loader::YAML.new(project_config: './.kitchen.cloud.yml') | ||
config = Kitchen::Config.new( loader: @loader) | ||
config.instances.each do |instance| | ||
instance.test(:always) | ||
end | ||
end | ||
end | ||
end | ||
|
||
# We cannot run Test Kitchen on Travis CI yet... | ||
namespace :travis do | ||
desc 'Run tests on Travis' | ||
task ci: ['unit', 'style'] | ||
end | ||
desc 'Run all tests on Travis' | ||
task travis: ['style', 'spec', 'integration:cloud'] | ||
|
||
# The default rake task should just run it all | ||
task default: ['travis:ci', 'integration'] | ||
# Default | ||
task default: ['style', 'spec', 'integration:vagrant'] |
Oops, something went wrong.