1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00

Clean up ci tasks.

Get the files to use the build directory again.
This commit is contained in:
mvandervoord
2019-12-14 05:18:46 -05:00
parent 3f71d10b2e
commit 461c6b3978
2 changed files with 5 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ namespace :test do
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
end
desc "Generate test summary"
task :summary do
report_summary
@@ -57,7 +57,7 @@ namespace :test do
end
# Shorthand for many common tasks
task :all => [:clean, :prepare_for_tests, :scripts, :unit, :style, :summary]
task :all => ['test:all']
task :default => [:clobber, :all]
task :ci => [:no_color, :default]
task :cruise => [:no_color, :default]

View File

@@ -135,18 +135,20 @@ module RakefileHelpers
end
def compile(file, defines = [])
out_file = File.basename(file, C_EXTENSION) + $cfg[:extension][:object]
out_file = File.join('build', File.basename(file, C_EXTENSION)) + $cfg[:extension][:object]
cmd_str = build_command_string( $cfg[:tools][:test_compiler], [ file, out_file ], defines )
execute(cmd_str)
out_file
end
def link_it(exe_name, obj_list)
exe_name = File.join('build', File.basename(exe_name))
cmd_str = build_command_string( $cfg[:tools][:test_linker], [ obj_list, exe_name ] )
execute(cmd_str)
end
def runtest(bin_name, ok_to_fail = false, extra_args = nil)
bin_name = File.join('build', File.basename(bin_name))
extra_args = extra_args.nil? ? "" : " " + extra_args
if $cfg[:tools][:test_fixture]
cmd_str = build_command_string( $cfg[:tools][:test_fixture], [ bin_name, extra_args ] )
@@ -193,7 +195,6 @@ module RakefileHelpers
# Build and execute each unit test
test_files.each do |test|
puts "DEBUG: " + test
# Drop Out if we're skipping this type of test
if $cfg[:skip_tests]