forked from ucla-oarc-web/WebBlocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
44 lines (38 loc) · 1000 Bytes
/
Rakefile
File metadata and controls
44 lines (38 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# WebBlocks Build Script
#
# This script performs a WebBlocks build taskas:
#
# rake [command]
#
# One may specify a configuration file besides /Rakefile-config.rb via a
# command-line argument passed to rake:
#
# rake [command] -- --config=Rakefile-config.rb
#
# This Rakefile uses a number of libraries within the WebBlocks namespace that
# reside within the /rake directory.
#
require 'rubygems'
require 'bundler'
require 'extensions/kernel' if defined?(require_relative).nil?
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require_relative 'lib/Rake'
include WebBlocks::Rake
run
require 'rake/testtask'
Rake::TestTask.new do |t|
t.test_files = FileList['test/**/*.rb']
end
Rake::TestTask.new("test:unit") do |t|
t.pattern = 'test/unit/**/*.rb'
end
Rake::TestTask.new("test:build") do |t|
t.pattern = 'test/build/**/*.rb'
end