.kitchen.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ---
  2. driver :
  3. # TRAVIS: local
  4. # NO TRAVIS: vagrant
  5. name : <%= if ENV['TRAVIS'] then 'localhost' else 'vagrant' end %>
  6. provisioner:
  7. name : ansible_push
  8. verbose : "vvvv"
  9. ansible_config : "test/ansible.cfg"
  10. idempotency_test : True
  11. # TRAVIS: True
  12. # NO TRAVIS: False
  13. sudo : <%= if ENV['TRAVIS'] then 'True' else 'False' end %>
  14. platforms:
  15. # travistravis
  16. - name : <%= if ENV['TRAVIS'] then 'travis' else 'ubuntu-14.04' end %>
  17. provisioner :
  18. raw_arguments : <%= if ENV['TRAVIS'] then '-c local' else '' end %>
  19. # Should be safily ignored by Travis since connection local
  20. driver:
  21. box: ubuntu/trusty64
  22. customize:
  23. cpus : 2
  24. memory : 2048
  25. suites:
  26. - name : group
  27. provisioner :
  28. playbook : "test/application/group.yml"
  29. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }
  30. - name : simple
  31. provisioner :
  32. playbook : "test/application/simple.yml"
  33. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }
  34. - name : advanced
  35. provisioner :
  36. playbook : "test/application/advanced.yml"
  37. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }
  38. - name : source-files
  39. provisioner :
  40. playbook : "test/application/source_files.yml"
  41. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }
  42. - name : source-databag
  43. provisioner :
  44. playbook : "test/application/source_databag.yml"
  45. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }
  46. - name : multi-source-files
  47. provisioner :
  48. playbook : "test/application/multi_source_files.yml"
  49. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }
  50. - name : team
  51. provisioner :
  52. playbook : "test/application/team.yml"
  53. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }
  54. - name : extra-simple
  55. provisioner :
  56. playbook : "test/application/extra_simple.yml"
  57. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }
  58. - name : extra-advanced
  59. provisioner :
  60. playbook : "test/application/extra_advanced.yml"
  61. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }
  62. - name : extra-team
  63. provisioner :
  64. playbook : "test/application/extra_team.yml"
  65. extra_vars : { 'kitchen_connection': 'smart', 'kitchen_hosts': '<%= if ENV['TRAVIS'] then 'localhost' else 'all' end %>' }