Skip to content

Commit

Permalink
Don't exec bundle install in bin/test
Browse files Browse the repository at this point in the history
This can have adverse effects when building locally.

These steps, if required, should be performed by the user.
  • Loading branch information
zzak committed Dec 7, 2023
1 parent f21f238 commit f4e6eee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
18 changes: 2 additions & 16 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,7 @@ load "rails/tasks/statistics.rake"

Rake::TestTask.new do |test|
test.libs << "test"
test.test_files = FileList["test/**/*_test.rb"]
test.pattern = "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]
task default: :test
14 changes: 1 addition & 13 deletions bin/test
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
#!/usr/bin/env ruby
$: << File.expand_path("../test", __dir__)

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`

require "bundler/setup"
require "rails/plugin/test"
require "rails/plugin/test"

0 comments on commit f4e6eee

Please sign in to comment.