Sha256: 8b7650a153be41afe506ad8daf0efefe1219421132926a1d944696de4b85464a
Contents?: true
Size: 863 Bytes
Versions: 29
Compression:
Stored size: 863 Bytes
Contents
# frozen_string_literal: true require 'bundler/gem_tasks' require 'rake/testtask' require 'ci/queue/version' Rake::TestTask.new(:test) do |t| t.libs << 'test' t.libs << 'lib' selected_files = ENV["TEST_FILES"].to_s.strip.split(/\s+/) selected_files = nil if selected_files.empty? t.test_files = selected_files || FileList['test/**/*_test.rb'] - FileList['test/fixtures/**/*_test.rb'] end task :default => :test namespace :scripts do task :copy do Dir[File.join(CI::Queue::DEV_SCRIPTS_ROOT, '*.lua')].each do |origin| filename = File.basename(origin) destination = File.join(CI::Queue::RELEASE_SCRIPTS_ROOT, filename) File.open(destination, 'w+') do |f| f.write("-- AUTOGENERATED FILE DO NOT EDIT DIRECTLY\n") f.write(File.read(origin)) end end end end Rake::Task['build'].enhance ['scripts:copy']
Version data entries
29 entries across 29 versions & 1 rubygems