diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index fa6bd7764a..d6c6cd0f04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -321,6 +321,25 @@ matrix: - cat /tmp/out.txt - sudo cat /var/log/squid3/cache.log - sudo cat /var/log/squid3/access.log + # Use test-kitchen to launch a centos docker container to run the full rspec tests against. This catches + # errors in travis, before PRs are merged, hopefully before they become errors in jenkins. + - 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 |