New Saltstack Salt formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

62 lines
2.6KB

  1. sudo: required
  2. services:
  3. - docker
  4. install:
  5. - pip install PyYAML
  6. - pip install virtualenv
  7. - |
  8. test -e Gemfile || cat <<EOF > Gemfile
  9. source 'https://rubygems.org'
  10. gem 'rake'
  11. gem 'test-kitchen'
  12. gem 'kitchen-docker'
  13. gem 'kitchen-inspec'
  14. gem 'inspec'
  15. gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
  16. - bundle install
  17. env:
  18. - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=control-default
  19. - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=master-default
  20. - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=minion-default
  21. - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=minion-multi-master-failover
  22. - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=control-default
  23. - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=master-default
  24. - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=minion-default
  25. - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=minion-multi-master-failover
  26. # TODO, once 18.04 LTS Bionic Beaver is released, rename trusty to bionic
  27. - PLATFORM=trevorj/salty-whales:bionic-2017.7 SUITE=master-default
  28. - PLATFORM=trevorj/salty-whales:bionic-2017.7 SUITE=minion-default
  29. - PLATFORM=trevorj/salty-whales:trusty SUITE=control-default
  30. - PLATFORM=trevorj/salty-whales:trusty SUITE=master-default
  31. - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-default
  32. - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-multi-master-failover
  33. - PLATFORM=trevorj/salty-whales:xenial SUITE=control-default
  34. - PLATFORM=trevorj/salty-whales:xenial SUITE=master-default
  35. - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-default
  36. - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-multi-master-failover
  37. # TODO, once 18.04 LTS Bionic Beaver is released, rename trusty to bionic
  38. - PLATFORM=trevorj/salty-whales:bionic SUITE=master-default
  39. - PLATFORM=trevorj/salty-whales:bionic SUITE=minion-default
  40. before_script:
  41. - set -o pipefail
  42. - make test | tail
  43. script:
  44. - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
  45. - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
  46. notifications:
  47. webhooks:
  48. urls:
  49. - https://webhooks.gitter.im/e/6123573504759330786b
  50. on_success: change # options: [always|never|change] default: always
  51. on_failure: never # options: [always|never|change] default: always
  52. on_start: never # options: [always|never|change] default: always
  53. on_cancel: never # options: [always|never|change] default: always
  54. on_error: never # options: [always|never|change] default: always
  55. email: false