From ec578e82e4342b1c3a1766a843591187ca7c0c3d Mon Sep 17 00:00:00 2001 From: Justin Stoller Date: Tue, 27 Jan 2015 12:01:48 +0000 Subject: [PATCH] (maint) Add ci:spec task from facter/puppet/hiera --- Gemfile | 1 + Rakefile | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/Gemfile b/Gemfile index 2064edb6..f65db245 100755 --- a/Gemfile +++ b/Gemfile @@ -10,6 +10,7 @@ group :dev do end group :test do + gem 'yarjuf', "~> 1.0" gem 'rdoc' gem 'rspec', '~> 2.11.0' gem 'mocha', '~> 0.10.0' diff --git a/Rakefile b/Rakefile index f22649d3..802a853c 100644 --- a/Rakefile +++ b/Rakefile @@ -91,6 +91,17 @@ task :test do sh "cd spec && rake" end +desc "Run spec tests" +task :test => :spec + +namespace :ci do + desc "Run the specs with CI options" + task :spec do + ENV["LOG_SPEC_ORDER"] = "true" + sh %{rspec -r yarjuf -f JUnit -o result.xml -fp spec} + end +end + desc "Creates the website as a tarball" task :website => :clean do FileUtils.mkdir_p("build/marionette-collective.org/html")