diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3a305d0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +--- +language: ruby +sudo: required +services: + - docker +script: + - bundle exec rspec spec/acceptance +bundler_args: --without system_tests +matrix: + include: + - rvm: default + env: LINT=metadata + dist: trusty + bundler_args: + script: bundle exec rake metadata_lint diff --git a/Gemfile b/Gemfile index 7bd34cd..be325d9 100644 --- a/Gemfile +++ b/Gemfile @@ -5,3 +5,14 @@ gem 'puppet', puppetversion gem 'puppetlabs_spec_helper', '>= 0.1.0' gem 'puppet-lint', '>= 0.3.2' gem 'facter', '>= 1.7.0' + +group :system_tests do + gem 'beaker', :require => false + gem 'beaker-rspec', :require => false + gem 'beaker_spec_helper', :require => false + gem 'beaker-puppet_install_helper', :require => false + gem 'serverspec', :require => false + gem 'rspec', '< 3.2', :require => false if RUBY_VERSION =~ /^1\.8/ + gem 'rspec-puppet', :require => false + gem 'metadata-json-lint', :require => false +end diff --git a/Rakefile b/Rakefile index 106d479..0596969 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,7 @@ require 'rubygems' require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' +require 'metadata-json-lint/rake_task' PuppetLint.configuration.send('disable_80chars') PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] diff --git a/metadata.json b/metadata.json index 5f617c8..5fbf964 100644 --- a/metadata.json +++ b/metadata.json @@ -11,5 +11,11 @@ {"name":"puppetlabs/stdlib","version_requirement":">= 1.0.0"}, {"name":"eyp/systemd","version_requirement":">= 0.1.0"}, {"name":"eyp/initscript","version_requirement":">= 0.1.0"} + ], + "operatingsystem_support": [ + { + "operatingsystem": "RedHat", + "operatingsystemrelease": [ "5", "6", "7" ] + } ] }