forked from neo4jrb/neo4j-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (32 loc) · 829 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
require 'rake'
require 'bundler/gem_tasks'
require 'neo4j/rake_tasks'
require 'yard'
load './spec/lib/yard_rspec.rb'
def jar_path
spec = Gem::Specification.find_by_name('neo4j-community')
gem_root = spec.gem_dir
gem_root + '/lib/neo4j-community/jars'
end
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'spec/**/*_spec.rb']
end
desc 'Run neo4j-core specs'
task 'spec' do
success = system('rspec spec')
abort('RSpec neo4j-core failed') unless success
end
desc 'Generate coverage report'
task 'coverage' do
ENV['COVERAGE'] = 'true'
rm_rf 'coverage/'
task = Rake::Task['spec']
task.reenable
task.invoke
end
task default: [:spec]
# require 'coveralls/rake/task'
# Coveralls::RakeTask.new
# task :test_with_coveralls => [:spec, 'coveralls:push']
#
# task :default => ['test_with_coveralls']