diff --git a/.travis.yml b/.travis.yml index 79703af..0771acb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,17 @@ -notifications: - email: false +--- language: ruby + script: -- bundle exec rubocop -- tests/test.sh + - bundle exec rubocop + - tests/test.sh + sudo: false + rvm: -- 2.2 + - 2.0.0 + - 2.1.9 + - 2.3.1 + deploy: provider: rubygems api_key: @@ -15,3 +20,6 @@ deploy: on: tags: true repo: voxpupuli/metadata-json-lint + +notifications: + email: false diff --git a/README.md b/README.md index e9b1cef..067e631 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ Simple tool to validate and lint `metadata.json` files in Puppet modules as recommended in Puppet Forge style guidelines from [Puppet forge metadata style quide](https://docs.puppetlabs.com/puppet/latest/reference/modules_publishing.html#write-a-metadatajson-file) +## Compatibility + +metadata-json-lint is compatible with Ruby versions 2.0.0, 2.1.9 and +2.3.1. + ## Installation ```shell @@ -43,19 +48,5 @@ rake metadata_lint ## Contributors -A Big thank you to the code contributors: - -* Spencer Krum -* Rob Nelson -* Matthew Haughton -* Dominic Cleal -* Tim Meusel -* Igor Galić -* Richard Pijnenburg -* Djuri Baars -* Joseph (Jy) Yaworski -* Mike Arnold -* Nan Liu -* Raphaël Pinson -* Sebastien Badia -* William Van Hevelingen +A Big thank you to the +[contributors](https://github.com/voxpupuli/metadata-json-lint/graphs/contributors) diff --git a/metadata-json-lint.gemspec b/metadata-json-lint.gemspec index 513af48..d7628cb 100644 --- a/metadata-json-lint.gemspec +++ b/metadata-json-lint.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'spdx-licenses', '~> 1.0' s.add_runtime_dependency 'json' - s.add_runtime_dependency 'semantic_puppet', '>= 0.1.2', '< 1.0.0' + s.add_runtime_dependency 'semantic_puppet', '>= 0.1.2', '< 2.0.0' s.add_development_dependency 'rake' s.add_development_dependency 'rubocop' end diff --git a/tests/test.sh b/tests/test.sh index bf0af07..bdeeeae 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -21,6 +21,8 @@ test() { RESULT=$? if [ $RESULT -ne $expect ]; then fail "Failing Test '${name}' (bin)" + else + echo "Successful Test '${name}' (bin)" fi # Only check the Rakefile when no additional arguments were passed to metadata-json-lint. @@ -30,6 +32,8 @@ test() { RESULT=$? if [ $RESULT -ne $expect ]; then fail "Failing Test '${name}' (rake)" + else + echo "Successful Test '${name}' (rake)" fi fi cd ..