Skip to content

Commit

Permalink
Make sure to compile before spec run
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshi Nakamura committed Jan 31, 2012
1 parent e6d9b5d commit 18477b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Rakefile
Expand Up @@ -20,7 +20,7 @@ Rake::ExtensionTask.new('kryptcore') do |ext|
ext.config_options = $config_options
end

RSpec::Core::RakeTask.new(:spec) do |spec|
RSpec::Core::RakeTask.new('spec-run') do |spec|
spec.pattern = File.join(KRYPT_HOME, 'spec/**/*_spec.rb')
spec.fail_on_error = false
end
Expand Down Expand Up @@ -50,7 +50,10 @@ task 'report-coverage' do
end

desc 'Build ext for coverage and generate a coverage report of spec.'
task 'coverage' => ['enable-coverage', 'compile', 'spec', 'report-coverage']
task 'coverage' => ['clean', 'enable-coverage', 'compile', 'spec-run', 'report-coverage']

desc 'Build and run RSpec code examples'
task 'spec' => ['compile', 'spec-run']

task :build => :compile

Expand Down

0 comments on commit 18477b4

Please sign in to comment.