summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-08-10 12:17:04 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-08-10 12:17:04 -0700
commitb7493fd0855e7575b91f695b28ef3af1b47f0276 (patch)
tree6c5925790995c4e0e734439e27861f3f93c48244 /.travis.yml
parent7c9178e5dd4ec7b5a75993c148b087bac6e5b53d (diff)
downloadchef-b7493fd0855e7575b91f695b28ef3af1b47f0276.tar.gz
add centos-7 rspec testing
running rspec inside a test-kitchen provisioned centos-7 docker container Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index cade7e5fca..19747762af 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -322,6 +322,23 @@ matrix:
- cat /tmp/out.txt
- sudo cat /var/log/squid3/cache.log
- sudo cat /var/log/squid3/access.log
+ - rvm: 2.4.4
+ services: docker
+ sudo: required
+ gemfile: kitchen-tests/Gemfile
+ before_install:
+ - gem update --system $(grep rubygems omnibus_overrides.rb | cut -d'"' -f2)
+ - gem install bundler -v $(grep :bundler omnibus_overrides.rb | cut -d'"' -f2)
+ before_script:
+ - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
+ - cd kitchen-tests
+ script:
+ - bundle exec kitchen test rspec-centos-7
+ after_failure:
+ - cat .kitchen/logs/kitchen.log
+ env:
+ - RSPEC_CENTOS=7
+ - KITCHEN_YAML=kitchen.travis.yml
notifications:
on_change: true