Skip to content

Commit ef95926

Browse files
committed
Install docs on CentOS acceptance tests
1 parent df9fe81 commit ef95926

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.sync.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ Gemfile:
1919
- gem: 'zabbixapi'
2020
spec/spec_helper.rb:
2121
mock_with: ':mocha'
22-
spec/spec_helper_acceptance.rb:
23-
unmanaged: false

spec/spec_helper_acceptance.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
require 'voxpupuli/acceptance/spec_helper_acceptance'
22

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

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

0 commit comments

Comments
 (0)