38d3b8808e
bootstrap script installs testing dependencies on trusty and relies on common bootstrap.sh in stackforge/cookbook-openstack-common - fixed mixup in dependency for knife task in Rakefile - deprecated Gemfile - updated TESTING.md blueprint: bootstrap-infra-test-nodes Change-Id: Ia6e457570fc585874dbf56751c2f8388eb637bbc
31 lines
543 B
Ruby
31 lines
543 B
Ruby
task default: ["test"]
|
|
|
|
task :test => [:lint, :style, :knife, :unit]
|
|
|
|
task :berks_prep do
|
|
sh %{chef exec berks vendor}
|
|
end
|
|
|
|
task :lint do
|
|
sh %{chef exec foodcritic --epic-fail any --tags ~FC003 --tags ~FC023 .}
|
|
end
|
|
|
|
task :knife => :berks_prep do
|
|
sh %{chef exec knife cookbook test openstack-integration-test -o berks-cookbooks}
|
|
end
|
|
|
|
task :style do
|
|
sh %{chef exec rubocop}
|
|
end
|
|
|
|
task :unit => :berks_prep do
|
|
sh %{chef exec rspec --format documentation}
|
|
end
|
|
|
|
task :clean do
|
|
rm_rf [
|
|
'berks-cookbooks',
|
|
'Berksfile.lock'
|
|
]
|
|
end
|