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