From 7d6a601fc61abd478d75916ef39428b0b7f15f8f Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 4 Jan 2018 01:34:42 +0100 Subject: [PATCH] modulesync 1.6.0 --- .msync.yml | 2 +- .rubocop.yml | 2 +- .travis.yml | 31 +++++++++++++------------------ Rakefile | 27 +++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 20 deletions(-) diff --git a/.msync.yml b/.msync.yml index 80959a38..08e85ce0 100644 --- a/.msync.yml +++ b/.msync.yml @@ -1 +1 @@ -modulesync_config_version: '1.5.0' +modulesync_config_version: '1.6.0' diff --git a/.rubocop.yml b/.rubocop.yml index 3fc819bf..099a11c5 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -46,7 +46,7 @@ Style/HashSyntax: Style/RedundantReturn: Enabled: True -Style/EndOfLine: +Layout/EndOfLine: Enabled: False Lint/AmbiguousOperator: diff --git a/.travis.yml b/.travis.yml index d0257691..ab2808d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,29 +4,12 @@ dist: trusty language: ruby cache: bundler before_install: - - bundle -v - - rm Gemfile.lock || true - - gem update --system - - gem update bundler - - gem --version - - bundle -v + - rm -f Gemfile.lock script: - 'bundle exec rake $CHECK' matrix: fast_finish: true include: - - rvm: 2.4.2 - bundler_args: --without development release - dist: trusty - env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/ubuntu-16.04 CHECK=beaker - services: docker - sudo: required - - rvm: 2.4.2 - bundler_args: --without development release - dist: trusty - env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/centos-7 CHECK=beaker - services: docker - sudo: required - rvm: 2.1.9 bundler_args: --without system_tests development release env: PUPPET_VERSION="~> 4.0" CHECK=test PARALLEL_TEST_PROCESSORS=16 @@ -39,6 +22,18 @@ matrix: - rvm: 2.4.2 bundler_args: --without system_tests development release env: PUPPET_VERSION="~> 5.0" CHECK=build DEPLOY_TO_FORGE=yes + - rvm: 2.4.2 + bundler_args: --without development release + dist: trusty + env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/ubuntu-16.04 CHECK=beaker + services: docker + sudo: required + - rvm: 2.4.2 + bundler_args: --without development release + dist: trusty + env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/centos-7 CHECK=beaker + services: docker + sudo: required branches: only: - master diff --git a/Rakefile b/Rakefile index 14ccf58b..279580ac 100644 --- a/Rakefile +++ b/Rakefile @@ -26,6 +26,12 @@ exclude_paths = %w( PuppetLint.configuration.ignore_paths = exclude_paths PuppetSyntax.exclude_paths = exclude_paths +desc 'Auto-correct puppet-lint offenses' +task 'lint:auto_correct' do + PuppetLint.configuration.fix = true + Rake::Task[:lint].invoke +end + desc 'Run acceptance tests' RSpec::Core::RakeTask.new(:acceptance) do |t| t.pattern = 'spec/acceptance' @@ -48,6 +54,27 @@ task test_with_coveralls: [:test] do end end +desc "Print supported beaker sets" +task 'beaker_sets', [:directory] do |t, args| + directory = args[:directory] + + metadata = JSON.load(File.read('metadata.json')) + + (metadata['operatingsystem_support'] || []).each do |os| + (os['operatingsystemrelease'] || []).each do |release| + if directory + beaker_set = "#{directory}/#{os['operatingsystem'].downcase}-#{release}" + else + beaker_set = "#{os['operatingsystem'].downcase}-#{release}-x64" + end + + filename = "spec/acceptance/nodesets/#{beaker_set}.yml" + + puts beaker_set if File.exists? filename + end + end +end + begin require 'github_changelog_generator/task' GitHubChangelogGenerator::RakeTask.new :changelog do |config|