Created
April 18, 2011 13:22
-
-
Save devboy/925320 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'buildr/as3' | |
# We need these maven repositories to download the flexunit4 and junit files | |
repositories.remote << "http://artifacts.devboy.org" << "http://repo2.maven.org/maven2" | |
define "AdvancedExample" do | |
define "MyApplication" do | |
compile.using :mxmlc | |
compile.options[:flexsdk] = FlexSDK.new("4.1.0.16076") | |
compile.options[:main] = _(:src,:main,:as3) + "/MyApplication.as" | |
compile.options[:apparat] = ApparatToolkit.new("1.0-RC9") | |
compile { apparat_tdsi :a => true, :f => true } | |
# define flexunit4 as test-engine | |
test.using :flexunit4 => true | |
# define the TestRunner.mxml as main-file to compile | |
test.compile.options[:main] = _(:src,:test,:as3) + "/TestRunner.mxml" | |
# add the flexunit4 swc-files as compiler-dependencies | |
test.compile.with Buildr::AS3::Test::FlexUnit4.swc_dependencies | |
# add the main source-folder as dependency | |
test.compile.from compile.sources | |
# you can also run apparat on the test, to verify your swf works with the Apparat enhancements | |
test.compile { apparat_tdsi :a => true, :f => true } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment