This repository has been archived by the owner on Aug 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(SIMP-1275) Validate compliance_markup mapping
* Ported to new RPM build structure * Validated compliance_markup dependencies SIMP-1275 #comment validated compliance_markup mapping Change-Id: I8d9e888c7e0a0a3ac037100dffcabb4e688e170c
- Loading branch information
1 parent
2867cdb
commit c84b016
Showing
16 changed files
with
221 additions
and
244 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
fixtures: | ||
repositories: | ||
common: "git://github.com/simp/pupmod-simp-common" | ||
stdlib: "git://github.com/simp/puppetlabs-stdlib" | ||
common: "https://github.com/simp/pupmod-simp-common" | ||
stdlib: "https://github.com/simp/puppetlabs-stdlib" | ||
symlinks: | ||
cgroups: "#{source_dir}" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.*.sw? | ||
.yardoc | ||
dist | ||
/pkg | ||
!/spec/fixtures/ | ||
/spec/fixtures/* | ||
/spec/rp_env | ||
!/spec/fixtures/hieradata | ||
!/spec/fixtures/hieradata/*.yaml | ||
!/spec/fixtures/site.pp | ||
/spec/fixtures/hieradata/hiera.yaml | ||
/.rspec_system | ||
/.vagrant | ||
/.bundle | ||
/Gemfile.lock | ||
/vendor | ||
/junit | ||
/log |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--log-format="%{path}:%{line}:%{check}:%{KIND}:%{message}" | ||
--relative | ||
--no-class_inherits_from_params_class-check | ||
--no-80chars-check |
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,2 +1,3 @@ | ||
--format documentation | ||
--color | ||
--fail-fast |
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,17 +1,97 @@ | ||
--- | ||
language: ruby | ||
sudo: false | ||
cache: bundler | ||
rvm: | ||
- 1.8.7 | ||
- 1.9.3 | ||
- 2.0.0 | ||
- 2.2.1 | ||
install: bundle install | ||
before_script: | ||
- bundle | ||
bundler_args: --without development system_tests | ||
before_install: rm Gemfile.lock || true | ||
script: | ||
- 'bundle exec rake validate' | ||
- 'bundle exec rake lint' | ||
- 'bundle exec rake spec' | ||
- bundle exec rake test | ||
notifications: | ||
email: false | ||
rvm: | ||
- 2.0.0 | ||
- 2.1.0 | ||
- 2.2.1 | ||
- 1.9.3 | ||
env: | ||
global: | ||
- STRICT_VARIABLES=yes | ||
- TRUSTED_NODE_DATA=yes | ||
matrix: | ||
- PUPPET_VERSION="~> 3.8.0" | ||
- PUPPET_VERSION="~> 4.4.0" | ||
- PUPPET_VERSION="~> 3.5.0" | ||
- PUPPET_VERSION="~> 3.6.0" | ||
- PUPPET_VERSION="~> 3.7.0" | ||
- PUPPET_VERSION="~> 3.7.0" FUTURE_PARSER=yes | ||
- PUPPET_VERSION="~> 3.8.0" FUTURE_PARSER=yes | ||
- PUPPET_VERSION="~> 4.0.0" | ||
- PUPPET_VERSION="~> 4.1.0" | ||
- PUPPET_VERSION="~> 4.2.0" | ||
- PUPPET_VERSION="~> 4.3.0" | ||
matrix: | ||
allow_failures: | ||
- rvm: 1.8.7 | ||
- rvm: 2.2.1 | ||
fast_finish: true | ||
allow_failures: | ||
- rvm: 1.9.3 | ||
- rvm: 2.2.1 | ||
- env: PUPPET_VERSION="~> 3.5.0" | ||
- env: PUPPET_VERSION="~> 3.6.0" | ||
- env: PUPPET_VERSION="~> 3.7.0" | ||
- env: PUPPET_VERSION="~> 3.7.0" FUTURE_PARSER=yes | ||
- env: PUPPET_VERSION="~> 3.8.0" FUTURE_PARSER=yes | ||
- env: PUPPET_VERSION="~> 4.0.0" | ||
- env: PUPPET_VERSION="~> 4.1.0" | ||
- env: PUPPET_VERSION="~> 4.2.0" | ||
- env: PUPPET_VERSION="~> 4.3.0" | ||
|
||
|
||
exclude: | ||
# Ruby 1.9.3 | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 3.5.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 3.6.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 3.7.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 3.7.0" FUTURE_PARSER=yes | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 4.0.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 4.1.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 4.2.0" | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 4.3.0" | ||
|
||
# Ruby 2.1.0 | ||
- rvm: 2.1.0 | ||
env: PUPPET_VERSION="~> 3.5.0" | ||
- rvm: 2.1.0 | ||
env: PUPPET_VERSION="~> 3.6.0" | ||
- rvm: 2.1.0 | ||
env: PUPPET_VERSION="~> 3.7.0" | ||
- rvm: 2.1.0 | ||
env: PUPPET_VERSION="~> 3.7.0" FUTURE_PARSER=yes | ||
|
||
# Ruby 2.2.1 | ||
- rvm: 2.2.1 | ||
env: PUPPET_VERSION="~> 3.5.0" | ||
- rvm: 2.2.1 | ||
env: PUPPET_VERSION="~> 3.6.0" | ||
- rvm: 2.2.1 | ||
env: PUPPET_VERSION="~> 3.7.0" | ||
- rvm: 2.2.1 | ||
env: PUPPET_VERSION="~> 3.7.0" FUTURE_PARSER=yes | ||
- rvm: 2.2.1 | ||
env: PUPPET_VERSION="~> 3.8.0" | ||
- rvm: 2.2.1 | ||
env: PUPPET_VERSION="~> 4.0.0" | ||
- rvm: 2.2.1 | ||
env: PUPPET_VERSION="~> 4.1.0" | ||
- rvm: 2.2.1 | ||
env: PUPPET_VERSION="~> 4.2.0" | ||
- rvm: 2.2.1 | ||
env: PUPPET_VERSION="~> 4.3.0" |
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,80 +1,4 @@ | ||
#!/usr/bin/rake -T | ||
require 'puppetlabs_spec_helper/rake_tasks' | ||
require 'puppet/version' | ||
require 'puppet/vendor/semantic/lib/semantic' unless Puppet.version.to_f < 3.6 | ||
require 'puppet-syntax/tasks/puppet-syntax' | ||
require 'simp/rake/pupmod/helpers' | ||
|
||
# For playing nice with mock | ||
File.umask(027) | ||
Simp::Rake::Pupmod::Helpers.new(File.dirname(__FILE__)) | ||
|
||
|
||
begin | ||
require 'puppetlabs_spec_helper/rake_tasks' | ||
rescue LoadError | ||
puts "== WARNING: Gem puppetlabs_spec_helper not found, spec tests cannot be run! ==" | ||
end | ||
|
||
Rake::Task[:lint].clear | ||
|
||
# Lint Material | ||
begin | ||
require 'puppet-lint/tasks/puppet-lint' | ||
|
||
PuppetLint.configuration.send("disable_80chars") | ||
PuppetLint.configuration.send("disable_variables_not_enclosed") | ||
PuppetLint.configuration.send("disable_class_parameter_defaults") | ||
|
||
PuppetLint.configuration.relative = true | ||
PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" | ||
#PuppetLint.configuration.fail_on_warnings = true | ||
|
||
# Forsake support for Puppet 2.6.2 for the benefit of cleaner code. | ||
# http://puppet-lint.com/checks/class_parameter_defaults/ | ||
PuppetLint.configuration.send('disable_class_parameter_defaults') | ||
# http://puppet-lint.com/checks/class_inherits_from_params_class/ | ||
PuppetLint.configuration.send('disable_class_inherits_from_params_class') | ||
|
||
exclude_paths = [ | ||
"bundle/**/*", | ||
"pkg/**/*", | ||
"dist/**/*", | ||
"vendor/**/*", | ||
"spec/**/*", | ||
] | ||
PuppetLint.configuration.ignore_paths = exclude_paths | ||
PuppetSyntax.exclude_paths = exclude_paths | ||
rescue LoadError | ||
puts "== WARNING: Gem puppet-lint not found, lint tests cannot be run! ==" | ||
end | ||
|
||
begin | ||
require 'simp/rake/pkg' | ||
Simp::Rake::Pkg.new( File.dirname( __FILE__ ) ) do | t | | ||
t.clean_list << "#{t.base_dir}/spec/fixtures/hieradata/hiera.yaml" | ||
end | ||
rescue LoadError | ||
puts "== WARNING: Gem simp-rake-helpers not found, pkg: tasks cannot be run! ==" | ||
end | ||
|
||
|
||
desc "Run acceptance tests" | ||
RSpec::Core::RakeTask.new(:acceptance) do |t| | ||
t.pattern = 'spec/acceptance' | ||
end | ||
|
||
desc "Populate CONTRIBUTORS file" | ||
task :contributors do | ||
system("git log --format='%aN' | sort -u > CONTRIBUTORS") | ||
end | ||
|
||
task :metadata do | ||
sh "metadata-json-lint metadata.json" | ||
end | ||
|
||
desc "Run syntax, lint, and spec tests." | ||
task :test => [ | ||
:syntax, | ||
:lint, | ||
:spec, | ||
:metadata, | ||
] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Obsoletes: pupmod-cgroups-test |
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
Oops, something went wrong.