Saltstack Official Home Assistant Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

46 行
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. script:
  28. - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
  29. - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
  30. notifications:
  31. webhooks:
  32. urls:
  33. - https://webhooks.gitter.im/e/6123573504759330786b
  34. on_success: change # options: [always|never|change] default: always
  35. on_failure: never # options: [always|never|change] default: always
  36. on_start: never # options: [always|never|change] default: always
  37. on_cancel: never # options: [always|never|change] default: always
  38. on_error: never # options: [always|never|change] default: always
  39. email: false