forked from WOVNio/wovnrb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
40 lines (34 loc) · 859 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
40
# require "bundler/gem_tasks"
# require 'rake/extensiontask'
require 'rake/testtask'
require 'pry'
Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList['test/**/*.rb']
t.options = '-p'
end
task :package do
prys = `grep -Rn ^[^#]*pry lib/*`
if prys.length > 0
puts "Gem packaging failed: please remove all prys" and return
end
`rm wovnrb-*`
`bundle exec gem build wovnrb.gemspec`
`bundle exec gem push wovnrb-*`
`rm wovnrb-*`
end
desc 'Run tests'
task :default => :test
# Rake::ExtensionTask.new 'dom' do |ext|
# ext.lib_dir = 'lib/wovnrb'
# end
# gemspec = Gem::Specification.load('wovnrb.gemspec')
# Rake::ExtensionTask.new do |ext|
# ext.name = 'dom'
# ext.source_pattern = "*.{cpp,h}"
# ext.ext_dir = 'ext/wovnrb'
# ext.lib_dir = 'lib/wovnrb'
# ext.gem_spec = gemspec
# end
#
# task :default => [:compile]