-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS Acceptance testing, and more.... #424
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c90613c
enable acceptance tests
bastelfreak f95edde
update spec_helper_acceptance
bastelfreak d4e264b
Added CentOS rake, Add conditional that if virtualenv, then install dev
danquack ac6e2eb
Added CentOS 7 to readme
danquack c3b9124
added puppet validation on overcommit
danquack 90f263c
added centos7-64 to sync
danquack 54c7535
fixed robocop offenses
danquack ae76b60
updated to use @ekohl nits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
--- | ||
.travis.yml: | ||
secret: "D0l5n9nSaR4BTQ/fB95EWk0CuiSjLCaYDo6W5hesyaehBACbQqexEGBW2XLRlAIGz4QHgA6z87gu1Y7FMuot7xJXqgur4NU4pbrdzjz/gLuVPRxxWEmAp68yBwkwO2QoC3ISfzgRJjOMlTfAjM7dROpAoRPuNDMFGdAoC259ggA=" | ||
secret: "bBDDSSz8OQwK0zxJ4EjM01bE4uoNMzTXyxp2lllXdv6PYAJCI4bCCcdRF7OKLAWaRtm6c0HJGnfMXzmwqHF/pJSUZzfTGe4uwZrrmaGvdalP4fXtLWpviAoez8La0Nx7JYqwPPprP7nySBD8M3rUuOZJetXQM6yGgj4YSs2lKMo=" | ||
docker_sets: | ||
- set: ubuntu1404-64 | ||
- set: ubuntu1604-64 | ||
- set: debian8-64 | ||
- set: debian9-64 | ||
- set: centos7-64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,19 @@ | ||
require 'beaker-rspec' | ||
require 'beaker-puppet' | ||
require 'beaker/puppet_install_helper' | ||
require 'beaker/module_install_helper' | ||
|
||
UNSUPPORTED_PLATFORMS = ['windows'].freeze | ||
|
||
unless ENV['RS_PROVISION'] == 'no' || ENV['BEAKER_provision'] == 'no' | ||
hosts.each do |host| | ||
if host.is_pe? | ||
install_pe | ||
else | ||
install_puppet | ||
end | ||
end | ||
end | ||
run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no' | ||
install_ca_certs unless ENV['PUPPET_INSTALL_TYPE'] =~ %r{pe}i | ||
install_module_on(hosts) | ||
install_module_dependencies_on(hosts) | ||
|
||
RSpec.configure do |c| | ||
# Project root | ||
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
|
||
# Readable test descriptions | ||
c.formatter = :documentation | ||
|
||
# Configure all nodes in nodeset | ||
c.before :suite do | ||
# Install module and dependencies | ||
hosts.each do |host| | ||
shell('rm -rf /etc/puppet/modules/python/') | ||
copy_module_to(host, source: proj_root, module_name: 'python') | ||
shell("/bin/touch #{default['puppetpath']}/hiera.yaml") | ||
on host, puppet('module install puppetlabs-stdlib'), acceptable_exit_codes: [0, 1] | ||
on host, puppet('module install stahnma-epel'), acceptable_exit_codes: [0, 1] | ||
hosts.each do |host| | ||
if host[:platform] =~ %r{el-7-x86_64} && host[:hypervisor] =~ %r{docker} | ||
on(host, "sed -i '/nodocs/d' /etc/yum.conf") | ||
end | ||
end | ||
end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you provide this change to https://github.com/voxpupuli/modulesync_config/blob/master/moduleroot/.overcommit.yml.erb as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
voxpupuli/modulesync_config#492