New version of salt-formula from Saltstack
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.

51 satır
1.8KB

  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 SUITE=control-default
  19. - PLATFORM=trevorj/salty-whales:trusty SUITE=master-default
  20. - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-default
  21. - PLATFORM=trevorj/salty-whales:trusty SUITE=minion-multi-master-failover
  22. - PLATFORM=trevorj/salty-whales:xenial SUITE=control-default
  23. - PLATFORM=trevorj/salty-whales:xenial SUITE=master-default
  24. - PLATFORM=trevorj/salty-whales:xenial SUITE=minion-default
  25. - PLATFORM=trevorj/salty-whales:xenial 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 SUITE=master-default
  28. - PLATFORM=trevorj/salty-whales:bionic SUITE=minion-default
  29. before_script:
  30. - set -o pipefail
  31. - make test | tail
  32. script:
  33. - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
  34. - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
  35. notifications:
  36. webhooks:
  37. urls:
  38. - https://webhooks.gitter.im/e/6123573504759330786b
  39. on_success: change # options: [always|never|change] default: always
  40. on_failure: never # options: [always|never|change] default: always
  41. on_start: never # options: [always|never|change] default: always
  42. on_cancel: never # options: [always|never|change] default: always
  43. on_error: never # options: [always|never|change] default: always
  44. email: false