Petr Michalec | e9a6c2a | 2017-03-05 20:14:34 +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-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 | |
| 21 | env: |
| 22 | - PLATFORM=trevorj/salty-whales:trusty MYSQL_VERSION='5.5' |
| 23 | - PLATFORM=trevorj/salty-whales:xenial MYSQL_VERSION='5.7' |
| 24 | |
| 25 | before_script: |
| 26 | - make test | tail |
| 27 | |
| 28 | script: |
| 29 | - bundle exec kitchen verify single -t tests/integration |
| 30 | - bundle exec kitchen converge under-apache | tail |
| 31 | - bundle exec kitchen exec under-apache -c "sudo service mysql start && sudo service apache2 start && keystone-manage db_sync && sleep 1" |
| 32 | - bundle exec kitchen verify under-apache -t tests/integration |