Skip to content

Commit

Permalink
Install docs on CentOS acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Apr 26, 2020
1 parent df9fe81 commit ef95926
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ Gemfile:
- gem: 'zabbixapi'
spec/spec_helper.rb:
mock_with: ':mocha'
spec/spec_helper_acceptance.rb:
unmanaged: false
8 changes: 7 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
require 'voxpupuli/acceptance/spec_helper_acceptance'

configure_beaker
configure_beaker do |host|
# The CentOS docker image has a yum config that won't install docs, to keep used space low
# zabbix packages their SQL file as doc, we need that for bootstrapping the database
if host[:platform] =~ %r{el-7-x86_64} && host[:hypervisor] =~ %r{docker}
on(host, "sed -i '/nodocs/d' /etc/yum.conf")
end
end

Dir['./spec/support/acceptance/**/*.rb'].sort.each { |f| require f }

0 comments on commit ef95926

Please sign in to comment.