From ac7eac58c948183dbb309fb226d882514cf8e49a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Wed, 13 Mar 2013 10:17:17 +0100 Subject: Add augeas() function --- Rakefile | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Rakefile (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..14f1c24 --- /dev/null +++ b/Rakefile @@ -0,0 +1,2 @@ +require 'rubygems' +require 'puppetlabs_spec_helper/rake_tasks' -- cgit v1.2.3 From 0b807da215eadc363e9c9f67d5da37c034cf73dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Wed, 13 Mar 2013 11:21:59 +0100 Subject: Fix augeas::lens with new module organization --- Rakefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 14f1c24..e2eca5a 100644 --- a/Rakefile +++ b/Rakefile @@ -1,2 +1,13 @@ -require 'rubygems' +require 'rake' + +require 'rspec/core/rake_task' +require 'puppet-lint/tasks/puppet-lint' require 'puppetlabs_spec_helper/rake_tasks' + +RSpec::Core::RakeTask.new(:spec) do |t| + t.pattern = 'spec/*/*_spec.rb' + t.rspec_opts = ['-c'] +end + +task :default => [:spec, :lint] + -- cgit v1.2.3 From b9de77d2043341a6dd60c91daa26b6434c988f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Fri, 15 Mar 2013 19:02:04 +0100 Subject: Improve rspec options --- Rakefile | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index e2eca5a..2f92f39 100644 --- a/Rakefile +++ b/Rakefile @@ -4,10 +4,5 @@ require 'rspec/core/rake_task' require 'puppet-lint/tasks/puppet-lint' require 'puppetlabs_spec_helper/rake_tasks' -RSpec::Core::RakeTask.new(:spec) do |t| - t.pattern = 'spec/*/*_spec.rb' - t.rspec_opts = ['-c'] -end - task :default => [:spec, :lint] -- cgit v1.2.3 From 90b15adca74b8d3f3da67f2eec720b4a58faee82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Fri, 15 Mar 2013 20:47:44 +0100 Subject: Simplify Rakefile --- Rakefile | 3 --- 1 file changed, 3 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 2f92f39..4d31fec 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,3 @@ -require 'rake' - -require 'rspec/core/rake_task' require 'puppet-lint/tasks/puppet-lint' require 'puppetlabs_spec_helper/rake_tasks' -- cgit v1.2.3 From e770960939bb2173e33b945d832d13e51fd13fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Can=C3=A9vet?= Date: Fri, 5 Sep 2014 13:23:01 +0200 Subject: Use modulesync to manage meta files --- Rakefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 4d31fec..ee78ce6 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,6 @@ -require 'puppet-lint/tasks/puppet-lint' require 'puppetlabs_spec_helper/rake_tasks' +require 'puppet-lint/tasks/puppet-lint' -task :default => [:spec, :lint] - +PuppetLint.configuration.fail_on_warnings +PuppetLint.configuration.send('disable_80chars') +PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] -- cgit v1.2.3 From 1c80b35d5d19626cb87f2683a490f3d7edadd6cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Wed, 12 Nov 2014 12:02:10 +0100 Subject: Sync .travis.yml --- Rakefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index ee78ce6..47d75d8 100644 --- a/Rakefile +++ b/Rakefile @@ -4,3 +4,8 @@ require 'puppet-lint/tasks/puppet-lint' PuppetLint.configuration.fail_on_warnings PuppetLint.configuration.send('disable_80chars') PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] + +desc "Lint metadata.json file" +task :metadata do + sh "metadata-json-lint metadata.json" +end -- cgit v1.2.3 From 6bf3c5c9679d6ddf6d3aeb48477004e283c9c6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Can=C3=A9vet?= Date: Thu, 11 Dec 2014 13:57:12 +0100 Subject: Update with modulesync_configs [skip ci] --- Rakefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 47d75d8..5cf3aa8 100644 --- a/Rakefile +++ b/Rakefile @@ -2,6 +2,7 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' PuppetLint.configuration.fail_on_warnings +PuppetLint.configuration.send('relative') PuppetLint.configuration.send('disable_80chars') PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] -- cgit v1.2.3 From 8ad8061bc77a12d39019381017564043be41054a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Thu, 18 Dec 2014 09:43:46 +0100 Subject: Exclude vendor directories from tests --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 5cf3aa8..a81b2c6 100644 --- a/Rakefile +++ b/Rakefile @@ -4,7 +4,9 @@ require 'puppet-lint/tasks/puppet-lint' PuppetLint.configuration.fail_on_warnings PuppetLint.configuration.send('relative') PuppetLint.configuration.send('disable_80chars') -PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] +PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"] + +PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"] desc "Lint metadata.json file" task :metadata do -- cgit v1.2.3 From 84211a7877390f3467a9c4a44e6a2af3a4ba97fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Can=C3=A9vet?= Date: Fri, 6 Feb 2015 11:58:12 +0100 Subject: Clear lint rake task --- Rakefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index a81b2c6..a334275 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,7 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' +Rake::Task[:lint].clear PuppetLint.configuration.fail_on_warnings PuppetLint.configuration.send('relative') PuppetLint.configuration.send('disable_80chars') -- cgit v1.2.3 From 43d625bf452914124bc9e4be75b3874a02a6e09c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Can=C3=A9vet?= Date: Wed, 18 Feb 2015 09:11:58 +0100 Subject: Fix puppet-lint configuration --- Rakefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index a334275..f0f08fc 100644 --- a/Rakefile +++ b/Rakefile @@ -2,10 +2,11 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' Rake::Task[:lint].clear -PuppetLint.configuration.fail_on_warnings -PuppetLint.configuration.send('relative') -PuppetLint.configuration.send('disable_80chars') -PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"] +PuppetLint::RakeTask.new :lint do |config| + config.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"] + config.disable_checks = ['80chars'] + config.fail_on_warnings = true +end PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"] -- cgit v1.2.3 From 9a37fbd6beb470604d4a6f3d8264d8cce6eb7096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Can=C3=A9vet?= Date: Thu, 19 Feb 2015 14:09:14 +0100 Subject: Fix metadata rake task --- Rakefile | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index f0f08fc..f87e608 100644 --- a/Rakefile +++ b/Rakefile @@ -9,8 +9,3 @@ PuppetLint::RakeTask.new :lint do |config| end PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"] - -desc "Lint metadata.json file" -task :metadata do - sh "metadata-json-lint metadata.json" -end -- cgit v1.2.3