Chef Cookbook - OpenStack Orchestration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Rakefile 918B

123456789101112131415161718192021222324252627282930313233343536373839
  1. task default: ['test']
  2. task test: [:syntax, :lint, :unit]
  3. desc 'Vendor the cookbooks in the Berksfile'
  4. task :berks_prep do
  5. sh %(chef exec berks vendor)
  6. end
  7. desc 'Run FoodCritic (syntax) tests'
  8. task :syntax do
  9. sh %(chef exec foodcritic --exclude spec -f any .)
  10. end
  11. desc 'Run RuboCop (lint) tests'
  12. task :lint do
  13. sh %(chef exec cookstyle)
  14. end
  15. desc 'Run RSpec (unit) tests'
  16. task unit: :berks_prep do
  17. sh %(chef exec rspec --format documentation)
  18. end
  19. desc 'Remove the berks-cookbooks directory and the Berksfile.lock'
  20. task :clean do
  21. rm_rf [
  22. 'berks-cookbooks',
  23. 'Berksfile.lock',
  24. ]
  25. end
  26. desc 'All-in-One Neutron build Infra using Common task'
  27. task :integration do
  28. # Use the common integration task
  29. sh %(wget -nv -t 3 -O Rakefile-Common https://raw.githubusercontent.com/openstack/cookbook-openstack-common/master/Rakefile)
  30. load './Rakefile-Common'
  31. Rake::Task['common_integration'].invoke
  32. end