-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
executable file
·35 lines (28 loc) · 841 Bytes
/
Rakefile
File metadata and controls
executable file
·35 lines (28 loc) · 841 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
35
lib = File.expand_path '../lib', __FILE__
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include? lib
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/extensiontask'
Rake::ExtensionTask.new('rs_232') do |ext|
ext.name = 'rs_232_native'
ext.source_pattern = '*.{c,cpp}'
end
require 'rake/clean'
CLEAN.include %w(**/*.{log} doc coverage tmp pkg **/*.{o,so,bundle} Makefile)
require 'simplecov'
task :cov do
ENV['SIMPLECOV'] = 'features'
Rake::Task['default'].invoke
end
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.fork = true
t.profile = :default
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.fail_on_error = false
t.verbose = true
t.rspec_opts = '--format RspecJunitFormatter --out rspec.xml --tag ~wip'
end
task default: [:clobber, :compile, :spec]