diff --git a/.travis.yml b/.travis.yml index 694c98b..03a1e23 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,26 @@ +#This file is generated by ModuleSync, do not edit. --- sudo: false language: ruby -bundler_args: --without system_tests development -script: "bundle exec metadata-json-lint metadata.json && bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'" -rvm: - - 2.0.0 - - 2.1.0 -env: - matrix: - - PUPPET_GEM_VERSION="~> 3.8.0" - - PUPPET_GEM_VERSION="~> 3" FUTURE_PARSER="yes" - - PUPPET_GEM_VERSION="~> 4.0.0" - - PUPPET_GEM_VERSION="~> 4.1.0" - - PUPPET_GEM_VERSION="~> 4.2.0" - - PUPPET_GEM_VERSION="~> 4.3.0" - - PUPPET_GEM_VERSION="~> 4" - - PUPPET_GEM_VERSION="~> 4" STRICT_VARIABLES="yes" +cache: bundler +script: "bundle exec rake validate lint spec" +matrix: + fast_finish: true + include: + - rvm: 2.3.1 + bundler_args: --without system_tests + env: PUPPET_GEM_VERSION="~> 4.0" + - rvm: 2.1.9 + bundler_args: --without system_tests + env: PUPPET_GEM_VERSION="~> 4.0" + - rvm: 2.1.5 + bundler_args: --without system_tests + env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes" + - rvm: 2.1.5 + bundler_args: --without system_tests + env: PUPPET_GEM_VERSION="~> 3.0" + - rvm: 1.9.3 + bundler_args: --without system_tests + env: PUPPET_GEM_VERSION="~> 3.0" +notifications: + email: false diff --git a/Gemfile b/Gemfile index 8116b5c..55cc047 100644 --- a/Gemfile +++ b/Gemfile @@ -28,6 +28,10 @@ group :development do gem 'puppet-blacksmith' gem 'guard-rake' gem 'listen', '<= 3.0.6', :require => false + gem 'rubocop', '0.41.2' if RUBY_VERSION < '2.0.0' + gem 'rubocop' if RUBY_VERSION >= '2.0.0' + gem 'rubocop-rspec', '~> 1.6' if RUBY_VERSION >= '2.3.0' + gem 'json_pure', '<= 2.0.1' if RUBY_VERSION < '2.0.0' end group :system_tests do