Saltstack Official Home Assistant Formula
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.

47 lines
1.2KB

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