forked from ucla-oarc-web/WebBlocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (31 loc) · 770 Bytes
/
Rakefile
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
#
# 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'
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 'lib/Rake'
include WebBlocks::Rake
run
require 'rake/testtask'
Rake::TestTask.new do |t|
t.test_files = FileList['test/**/*.rb']
end