forked from devinus/ember-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (23 loc) · 627 Bytes
/
Rakefile
File metadata and controls
29 lines (23 loc) · 627 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
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