blob: 0b24242b7ddf63a8f42508c3d0e83961180c7fca [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 Polreich72f61c42018-01-19 13:55:09 +010025 - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=network
26 - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=network
27 # - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=storage
28 # - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=storage
29 - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=system
30 - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=system
Martin Polreich00b8f532017-08-24 16:11:46 +020031 - PLATFORM=trevorj/salty-whales:trusty SUITE=network
32 - PLATFORM=trevorj/salty-whales:xenial SUITE=network
33 # - PLATFORM=trevorj/salty-whales:trusty SUITE=storage
34 # - PLATFORM=trevorj/salty-whales:xenial SUITE=storage
35 - PLATFORM=trevorj/salty-whales:trusty SUITE=system
36 - PLATFORM=trevorj/salty-whales:xenial SUITE=system
Martin Polreich72f61c42018-01-19 13:55:09 +010037## Test on both Salt version until there is new test policy accepted
Petr Michalec35277532017-02-28 23:16:58 +010038
39before_script:
Martin Polreichf0d157b2017-03-28 16:43:40 +020040 - set -o pipefail
Petr Michalec35277532017-02-28 23:16:58 +010041 - make test | tail
42
43script:
Martin Polreichfcee6e42018-01-05 13:22:16 +010044 - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true
45 - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration
Martin Polreichf0d157b2017-03-28 16:43:40 +020046
47notifications:
48 webhooks:
49 urls:
50 - https://webhooks.gitter.im/e/6123573504759330786b
51 on_success: change # options: [always|never|change] default: always
52 on_failure: never # options: [always|never|change] default: always
53 on_start: never # options: [always|never|change] default: always
54 on_cancel: never # options: [always|never|change] default: always
55 on_error: never # options: [always|never|change] default: always
56 email: false