From 7fe81f98d2fbf6001ab3fe2004b69e503ddf7108 Mon Sep 17 00:00:00 2001 From: Dan Carley Date: Tue, 17 Dec 2013 12:11:02 +0000 Subject: [PATCH] Add syntax checks to `rake test` Despite the task description, these were omitted when the repo was copied or brought inline with gds-operations/puppet-module-skeleton. --- Gemfile | 1 + Rakefile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index 6d23f72..a545782 100644 --- a/Gemfile +++ b/Gemfile @@ -3,6 +3,7 @@ source "http://rubygems.org" gem 'puppet', ENV['PUPPET_VERSION'] || '~> 3.2.0' gem "rake" +gem "puppet-syntax" gem "puppet-lint" gem "rspec-puppet" gem "puppetlabs_spec_helper" diff --git a/Rakefile b/Rakefile index 22fbd61..7ed3f28 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,6 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' +require 'puppet-syntax/tasks/puppet-syntax' PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" PuppetLint.configuration.fail_on_warnings = true @@ -19,6 +20,7 @@ PuppetLint.configuration.ignore_paths = exclude_paths desc "Run syntax, lint, and spec tests." task :test => [ + :syntax, :lint, :spec, ]