Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 651 Bytes
#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rspec/core/rake_task" :spec
desc 'Build and copy Mocha and Chai assets from submodules into vendor/assets'
task :assets do
sh 'git submodule update --init' unless File.exist?('mocha/Makefile') || File.exist?('chai/Makefile')
sh 'cd mocha && make clean && make'
sh 'cd chai && make clean && make'
mkdir_p 'vendor/assets/javascripts'
mkdir_p 'vendor/assets/stylesheets'
cp 'mocha/mocha.js', 'vendor/assets/javascripts/'
cp 'mocha/mocha.css', 'vendor/assets/stylesheets/'
cp 'chai/chai.js', 'vendor/assets/javascripts/'
task :default => :spec
Something went wrong with that request. Please try again.