add dspec task to test dist file; revert spec task to normal behavior

This commit is contained in:
josh committed 2018-11-25 20:45:32 -05:00
1 parent e0b82d37af
commit 82fbd34149
3 files changed
+23 -4

No files matched your search

+9 -1
View File
@@ -96,7 +96,12 @@ describe Rscons do
[]
end
rscons_args = options[:rscons_args] || []
command = %W[ruby -I. -r _simplecov_setup #{@owd}/test/rscons.rb] + rsconscript_args + rscons_args + operation
if ENV["dist_specs"]
exe = "#{@owd}/test/rscons.rb"
else
exe = "#{@owd}/bin/rscons"
end
command = %W[ruby -I. -r _simplecov_setup #{exe}] + rsconscript_args + rscons_args + operation
@statics[:build_test_id] ||= 0
@statics[:build_test_id] += 1
command_prefix =
@@ -128,6 +133,9 @@ end
ENV["TERM"] = nil
#{options[:ruby_setup_code]}
EOF
unless ENV["dist_specs"]
fh.puts %[$LOAD_PATH.unshift(#{@owd.inspect} + "/lib")]
end
end
stdout, stderr, status = nil, nil, nil
Bundler.with_clean_env do
+5 -1
View File
@@ -12,4 +12,8 @@ SimpleCov.start do
merge_timeout 3600
end
require_relative "../test/rscons"
if ENV["dist_specs"]
require_relative "../test/rscons"
else
require "rscons"
end