Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.627 kB
APPNAME = 'ember-skeleton'
require 'colored'
require 'rake-pipeline'
desc "Build #{APPNAME}"
task :build do
Rake::Pipeline::Project.new('Assetfile').invoke
end
desc "Run tests with PhantomJS"
task :test => :build do
unless system("which phantomjs > /dev/null 2>&1")
abort "PhantomJS is not installed. Download from http://phantomjs.org/"
end
cmd = "phantomjs tests/run-tests.js \"file://#{File.dirname(__FILE__)}/tests/index.html\""
# Run the tests
puts "Running #{APPNAME} tests"
success = system(cmd)
if success
puts "Tests Passed".green
else
puts "Tests Failed".red
exit(1)
end
end
Jump to Line
Something went wrong with that request. Please try again.