1HERE = File.expand_path(File.dirname(__FILE__)) + '/' 2UNITY_ROOT = File.expand_path(File.dirname(__FILE__)) + '/../..' 3 4require 'rake' 5require 'rake/clean' 6require HERE + 'rakefile_helper' 7 8TEMP_DIRS = [ 9 File.join(HERE, 'build') 10].freeze 11 12TEMP_DIRS.each do |dir| 13 directory(dir) 14 CLOBBER.include(dir) 15end 16 17task prepare_for_tests: TEMP_DIRS 18 19include RakefileHelpers 20 21# Load default configuration, for now 22DEFAULT_CONFIG_FILE = 'target_gcc_32.yml'.freeze 23configure_toolchain(DEFAULT_CONFIG_FILE) 24 25task unit: [:prepare_for_tests] do 26 run_tests unit_test_files 27end 28 29desc 'Generate test summary' 30task :summary do 31 report_summary 32end 33 34desc 'Build and test Unity' 35task all: %i(clean unit summary) 36task default: %i(clobber all) 37task ci: [:default] 38task cruise: [:default] 39 40desc 'Load configuration' 41task :config, :config_file do |_t, args| 42 configure_toolchain(args[:config_file]) 43end 44