mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add rubocop to our build. (#5004)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
# this can also be set to a branch, e.g. "origin/tests-passed"
|
||||
#
|
||||
# Example usage:
|
||||
# Run all core and plugin tests:
|
||||
# Run all core and plugin tests:
|
||||
# docker run discourse/discourse_test:release
|
||||
# Run only rspec tests:
|
||||
# docker run -e RUBY_ONLY=1 discourse/discourse_test:release
|
||||
@@ -25,7 +25,6 @@
|
||||
# Run tests for a specific plugin (with a plugin mounted from host filesystem):
|
||||
# docker run -e SKIP_CORE=1 SINGLE_PLUGIN='my-awesome-plugin' -v $(pwd)/my-awesome-plugin:/var/www/discourse/plugins/my-awesome-plugin discourse/discourse_test:release
|
||||
|
||||
|
||||
def run_or_fail(command)
|
||||
pid = Process.spawn(command)
|
||||
Process.wait(pid)
|
||||
@@ -53,7 +52,6 @@ task 'docker:test' do
|
||||
puts "Starting postgres"
|
||||
@pg_pid = Process.spawn("#{@postgres_bin}postmaster -D tmp/test_data/pg")
|
||||
|
||||
|
||||
ENV["RAILS_ENV"] = "test"
|
||||
|
||||
@good = run_or_fail("bundle exec rake db:create db:migrate")
|
||||
|
||||
Reference in New Issue
Block a user