Saltstack Official Linux 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.

59 lines
2.1KB

  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', '<3.0.0'
  22. #Version was frozen, because of issues in the version of inspec >3.0.0 -- see https://mirantis.jira.com/browse/PROD-24324 for more info
  23. gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
  24. - bundle install
  25. env:
  26. - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=network
  27. - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2016.3 SUITE=system
  28. - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=network
  29. - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2017.7 SUITE=system
  30. - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=network
  31. - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=system
  32. - PLATFORM=epcim/salt:saltstack-ubuntu-xenial-salt-2018.3 SUITE=duo
  33. # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=network
  34. # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2017.7 SUITE=system
  35. # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=network
  36. # - PLATFORM=epcim/salt:saltstack-ubuntu-bionic-salt-2018.3 SUITE=system
  37. before_script:
  38. - set -o pipefail
  39. - make test | tail
  40. script:
  41. - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
  42. - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
  43. notifications:
  44. webhooks:
  45. urls:
  46. - https://webhooks.gitter.im/e/6123573504759330786b
  47. on_success: change # options: [always|never|change] default: always
  48. on_failure: never # options: [always|never|change] default: always
  49. on_start: never # options: [always|never|change] default: always
  50. on_cancel: never # options: [always|never|change] default: always
  51. on_error: never # options: [always|never|change] default: always
  52. email: false