forked from hotwired/turbo-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
28 lines (21 loc) · 631 Bytes
/
Rakefile
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
require "bundler/setup"
require "bundler/gem_tasks"
require "rake/testtask"
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
load "rails/tasks/engine.rake"
load "rails/tasks/statistics.rake"
Rake::TestTask.new do |test|
test.libs << "test"
test.test_files = FileList["test/**/*_test.rb"]
end
task :test_prereq do
puts "Installing Ruby dependencies"
`bundle install`
puts "Installing JavaScript dependencies"
`yarn install`
puts "Building JavaScript"
`yarn build`
puts "Preparing test database"
`cd test/dummy; ./bin/rails db:test:prepare; cd ../..`
end
task default: [:test_prereq, :test]