blob: 78246a51866c831bcd2a11e16c99e0ff7cb916b6 [file] [log] [blame]
Petr Michalec35277532017-02-28 23:16:58 +01001sudo: required
2services:
3 - docker
4
Petr Michalec69693222017-04-13 09:59:27 +02005addons:
6 apt:
7 packages:
8 - apt-transport-https
9
Petr Michalec35277532017-02-28 23:16:58 +010010install:
11 - pip install PyYAML
12 - pip install virtualenv
13 - |
14 test -e Gemfile || cat <<EOF > Gemfile
15 source 'https://rubygems.org'
16 gem 'rake'
17 gem 'test-kitchen'
18 gem 'kitchen-docker'
19 gem 'kitchen-inspec'
20 gem 'inspec'
Martin Polreichf0d157b2017-03-28 16:43:40 +020021 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
Petr Michalec35277532017-02-28 23:16:58 +010022 - bundle install
23
24env:
Martin Polreich69ce4992018-04-18 15:32:09 +020025 - 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
Petr Michalec35277532017-02-28 23:16:58 +010035
36before_script:
Martin Polreichf0d157b2017-03-28 16:43:40 +020037 - set -o pipefail
Petr Michalec35277532017-02-28 23:16:58 +010038 - make test | tail
39
40script:
Martin Polreichfcee6e42018-01-05 13:22:16 +010041 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
42 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreichf0d157b2017-03-28 16:43:40 +020043
44notifications:
45 webhooks:
46 urls:
47 - https://webhooks.gitter.im/e/6123573504759330786b
48 on_success: change # options: [always|never|change] default: always
49 on_failure: never # options: [always|never|change] default: always
50 on_start: never # options: [always|never|change] default: always
51 on_cancel: never # options: [always|never|change] default: always
52 on_error: never # options: [always|never|change] default: always
53 email: false