require "bundler/gem_tasks" require "rake/testtask" Rake::TestTask.new do |t| t.pattern = 'test/**/*_test.rb' t.libs << 'test' end desc "Update ctags" task :ctags do `ctags -R --languages=Ruby --totals -f tags` end desc "Run the internal build plus all gold master apps" namespace :test do task :all do Rake::Task['test'].invoke Rake::Task['test:gold_master_apps'].invoke end task :gold_master_apps do Dir['gold_master_apps/*'].each do |app_dir| puts "\n\nRunning tests for gold master app `#{File.basename(app_dir)}'" Dir.chdir app_dir do process = fork do exec "bin/rake" end Process.wait process exit $?.exitstatus unless $?.exitstatus == 0 end end end end task default: 'test:all'