blob: 7852407446e562b1885dae6ea235f3042d9835db [file] [log] [blame]
Martin8191d6f0a82017-03-17 17:38:11 +01001sudo: required
2services:
3 - docker
4
Martin819e07d0a92017-03-28 11:37:58 +02005install:
Martin8191d6f0a82017-03-17 17:38:11 +01006 - pip install PyYAML
7 - pip install virtualenv
8 - |
9 test -e Gemfile || cat <<EOF > Gemfile
10 source 'https://rubygems.org'
11 gem 'rake'
12 gem 'test-kitchen'
13 gem 'kitchen-docker'
14 gem 'kitchen-inspec'
15 gem 'inspec'
16 gem 'kitchen-salt', :git => 'https://github.com/epcim/kitchen-salt.git', :branch => 'dependencis-pkg-repo2'
17 #Waiting for PR#78
18 #gem 'kitchen-salt', '>=0.2.25'
19 - bundle install
20
Martin819e07d0a92017-03-28 11:37:58 +020021env:
Martin8191d6f0a82017-03-17 17:38:11 +010022 - PLATFORM=trevorj/salty-whales:trusty
23 - PLATFORM=trevorj/salty-whales:xenial
24
Martin819e07d0a92017-03-28 11:37:58 +020025
Martin8191d6f0a82017-03-17 17:38:11 +010026before_script:
Martin819f7613e42017-03-28 09:40:12 +020027 - set -o pipefail
28 - make test | tail
Martin8191d6f0a82017-03-17 17:38:11 +010029
30script:
31 - test ! -e .kitchen.yml || bundle exec kitchen test -t tests/integration
Martin819fe6e7872017-03-28 10:17:00 +020032
33notifications:
Martin819e07d0a92017-03-28 11:37:58 +020034 on:
35 branch: master
Martin819fe6e7872017-03-28 10:17:00 +020036 webhooks:
37 urls:
38 - https://webhooks.gitter.im/e/6123573504759330786b
39 on_success: change # options: [always|never|change] default: always
Martin8194cbbe3b2017-03-28 12:50:56 +020040 on_failure: never # options: [always|never|change] default: always
Martin819fe6e7872017-03-28 10:17:00 +020041 on_start: never # options: [always|never|change] default: always
42 on_cancel: never # options: [always|never|change] default: always
Martin8194cbbe3b2017-03-28 12:50:56 +020043 on_error: never # options: [always|never|change] default: always
44 email: false