forked from Paxa/fast_excel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (29 loc) · 763 Bytes
/
Rakefile
File metadata and controls
34 lines (29 loc) · 763 Bytes
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
desc "Sync github.com:Paxa/libxlsxwriter to ./libxlsxwriter"
task :sync do
require 'fileutils'
FileUtils.rm_rf("./libxlsxwriter")
system("git clone --depth 10 git@github.com:Paxa/libxlsxwriter.git")
Dir.chdir("./libxlsxwriter") do
system("git show --pretty='format:%cd %h' --date=iso --quiet > version.txt")
FileUtils.rm_rf("./.git")
end
end
require 'rake/testtask'
Rake::TestTask.new do |test|
test.test_files = Dir.glob('test/**/*_test.rb')
end
#task :default => :test
desc "Run all examples"
task :examples do
Dir.glob('examples/**/*.rb').each do |file|
require './' + file.sub(/\.rb$/, '')
end
end
desc "Compile libxlsxwriter shared library"
task :compile do
%x{
cd ext/fast_excel
ruby ./extconf.rb
make
}
end