Sha256: 0dcd04a09d4028f3f4b51be8504539e3542f459f74d160ef48edf9c81d29f8f1
Contents?: true
Size: 1004 Bytes
Versions: 2
Compression:
Stored size: 1004 Bytes
Contents
namespace 'gem' do require 'bundler/gem_tasks' end def run cmd output = `#{cmd}` raise output unless $? == 0 end namespace :compile do desc 'build telldus-core mock' task 'telldus_core' do Dir.chdir('spec/mocks/telldus-mock') do run "ruby extconf.rb > /dev/null" run "make" symlink "../telldus_state.so", "./lib/telldus_state.so", {force: true} symlink "../telldus_state.so", "./lib/libtelldus-core.so", {force: true} ENV['LD_LIBRARY_PATH']="spec/mocks/telldus-mock/lib:#{ENV['LD_LIBRARY_PATH']}" end end desc 'build rtelldus for testing' task 'telldus:test' => 'telldus_core' do Dir.chdir('ext/telldus') do run "ruby extconf.rb --with-telldus-dir=../../spec/mocks/telldus-mock" run "make" end end desc 'build telldus' task :telldus do Dir.chdir('lib/telldus/ext') do run "ruby extconf.rb" run "make" end end end desc 'run tests' task :test => [:'compile:telldus:test'] do sh "rspec -f d" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbtelldus-0.1.0 | Rakefile |
rbtelldus-0.0.10.beta | Rakefile |