Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 1 | sudo: required |
| 2 | services: |
| 3 | - docker |
| 4 | |
| 5 | install: |
| 6 | - 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-vagrant' |
| 15 | gem 'kitchen-inspec' |
| 16 | gem 'inspec' |
| 17 | gem 'kitchen-salt', :git => 'https://github.com/epcim/kitchen-salt.git', :branch => 'dependencis-pkg-repo2' |
| 18 | #Waiting for PR#78 |
| 19 | #gem 'kitchen-salt', '>=0.2.25' |
| 20 | - bundle install |
| 21 | |
| 22 | env: |
| 23 | matrix: |
| 24 | - SUITE=analytics |
| 25 | - SUITE=control |
| 26 | - SUITE=cluster |
| 27 | - SUITE=single |
| 28 | #- SUITE=vendor-juniper |
| 29 | #- SUITE=tor |
| 30 | #- SUITE=vrouter_kubernetes |
| 31 | #- SUITE=vrouter |
| 32 | #- PLATFORM=trevorj/salty-whales:xenial SUITE=analytics |
| 33 | #- PLATFORM=trevorj/salty-whales:xenial SUITE=control |
| 34 | #- PLATFORM=trevorj/salty-whales:xenial SUITE=cluster |
| 35 | #... |
| 36 | |
| 37 | before_script: |
| 38 | - make test | tail |
| 39 | |
| 40 | script: |
| 41 | - test ! -e .kitchen.yml || bundle exec kitchen verify $SUITE |
| 42 | |