forked from patternpark/asunit
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrakefile.rb
More file actions
59 lines (44 loc) · 1.29 KB
/
rakefile.rb
File metadata and controls
59 lines (44 loc) · 1.29 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
require 'sprout'
sprout 'as3'
ASUNIT_VERSION = '2.8'
##########################################
# To build from this file, install Ruby (http://ruby-lang.org)
# and RubyGems (http://rubygems.org/), then run:
# gem install sprout
# gem install rake
# rake
# This should walk you through the installation
# of required gems, compilers and vms
##########################################
# Compile the Test Harness
desc "Compile the test harness"
mxmlc 'bin/AsUnitRunner.swf' do |t|
t.default_size = '1000 600'
t.source_path << 'src'
t.input = 'test/AsUnitRunner.as'
end
##########################################
# Generate documentation
desc "Generate documentation"
asdoc 'doc' do |t|
t.source_path << 'src'
t.doc_classes << 'AsUnit'
end
##########################################
# Launch the Test Harness
desc "Compile and run the test harness"
flashplayer :run => 'bin/AsUnitRunner.swf'
##########################################
# Package framework ZIPs and SWCs
archive = "bin/asunit3.#{ASUNIT_VERSION}.zip"
zip archive do |t|
t.input = 'src/asunit'
puts "Created zip archive at: #{archive}"
end
desc "Create zip archives"
task :zip => archive
##########################################
# Set up task wrappers
task :default => :run
desc "Alias to the default task"
task :test => :run