Saltstack Official Linux Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

57 lines
1.9KB

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