Sha256: f1822fb156352d54f5d06a64a5ed729d6b9489fc4a08d078825897b4a40c98e5

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

=begin
####################################################################################################
# @author       David Kirwan https://github.com/davidkirwan/ardtweeno
# @description  Ardtweeno Gateway
#
# @date         2014-08-12
####################################################################################################

This file is part of Ardtweeno.

Ardtweeno is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.

Ardtweeno is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
=end

begin
  require 'bundler'
  Bundler::GemHelper.install_tasks
rescue Exception => e
  raise 'bundler gem not found, please install bundler and try again.'
end


task :default => 'test'

task :menu do
  puts welcomeMsg = <<-MSG
rake build    # Build ardtweeno-x.x.x.gem into the pkg directory
rake install  # Build and install ardtweeno-x.x.x.gem into system gems
rake test     # Run the unit testing suite on this gem.
MSG
end

desc "Run the unit testing suite on this gem."
task :test => :tty0tty do
  require "./test/test_helper.rb"
end

# Build the tty0tty binary before running tests
task :tty0tty => :clean_tty0tty do
  thePath = File.dirname(__FILE__) + "/test/debug/tty0tty-1.1/pts/"
  sh "gcc -Wall -O2 -D_GNU_SOURCE #{thePath}tty0tty.c -o #{thePath}tty0tty"
end

# Clean the build before compiling
task :clean_tty0tty do
  thePath = File.dirname(__FILE__) + "/test/debug/tty0tty-1.1/pts/"
  sh "rm -rf #{thePath}tty0tty #{thePath}*.o #{thePath}core"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ardtweeno-0.6.0 Rakefile