blob: 45f785c4c7a82ff3ac3d2f215053be586a51485f [file] [log] [blame]
Martin Polreich473a11b2018-06-21 15:29:43 +02001language: python
2python:
3- "2.7.13"
Marek Celoud43d293f2017-06-07 12:29:24 +02004sudo: required
5services:
6 - docker
7
8install:
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-vagrant'
18 gem 'kitchen-inspec'
Martin Polreichbdfe99f2018-10-24 12:02:34 +020019 gem 'inspec', '<3.0.0'
20 #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
Marek Celoud43d293f2017-06-07 12:29:24 +020021 gem 'kitchen-salt', :git => 'https://github.com/salt-formulas/kitchen-salt.git'
22 - bundle install
23
Martin Polreichc89eaad2017-07-17 13:41:14 +020024env:
Martin Polreicha8795142018-11-20 15:08:49 +010025 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=master-cluster
26 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=pool-cluster
27 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=master-contrail
28 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=master-contrail4-0
29 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=pool-contrail4-0
30 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2016.3/salt:2018_11_19 SUITE=common-storageclass
31 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=master-cluster
32 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=pool-cluster
33 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=master-contrail
34 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=master-contrail4-0
35 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 SUITE=pool-contrail4-0
36 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=master-cluster
37 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=pool-cluster
38 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=master-contrail
39 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=master-contrail4-0
40 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=pool-contrail4-0
41 - PLATFORM=docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 SUITE=common-storageclass
Martin Polreichc89eaad2017-07-17 13:41:14 +020042
Marek Celoud43d293f2017-06-07 12:29:24 +020043before_script:
44 - set -o pipefail
45 - make test | tail
46
47script:
Martin Polreich5e484852018-01-05 13:13:50 +010048 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
49 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Marek Celoud43d293f2017-06-07 12:29:24 +020050
51notifications:
52 webhooks:
53 urls:
54 - https://webhooks.gitter.im/e/6123573504759330786b
55 on_success: change # options: [always|never|change] default: always
56 on_failure: never # options: [always|never|change] default: always
57 on_start: never # options: [always|never|change] default: always
58 on_cancel: never # options: [always|never|change] default: always
59 on_error: never # options: [always|never|change] default: always
60 email: false