Saltstack Official Linux Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

52 lines
1.8KB

  1. sudo: required
  2. services:
  3. - docker
  4. addons:
  5. apt:
  6. packages:
  7. - apt-transport-https
  8. install:
  9. - pip install PyYAML
  10. - pip install virtualenv
  11. - |
  12. test -e Gemfile || cat <<EOF > Gemfile
  13. source 'https://rubygems.org'
  14. gem 'rake'
  15. gem 'test-kitchen'
  16. gem 'kitchen-docker'
  17. gem 'kitchen-inspec'
  18. gem 'inspec'
  19. gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
  20. - bundle install
  21. env:
  22. - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=network
  23. - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=network
  24. # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=storage
  25. # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=storage
  26. - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2016.3 SUITE=system
  27. - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-xenial-salt-2017.7 SUITE=system
  28. # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=network
  29. # - PLATFORM=epcim/salt-formulas:saltstack-ubuntu-bionic-salt-2017.7 SUITE=system
  30. before_script:
  31. - set -o pipefail
  32. - make test | tail
  33. script:
  34. - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
  35. - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
  36. notifications:
  37. webhooks:
  38. urls:
  39. - https://webhooks.gitter.im/e/6123573504759330786b
  40. on_success: change # options: [always|never|change] default: always
  41. on_failure: never # options: [always|never|change] default: always
  42. on_start: never # options: [always|never|change] default: always
  43. on_cancel: never # options: [always|never|change] default: always
  44. on_error: never # options: [always|never|change] default: always
  45. email: false