mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:50:26 -06:00
Allow to pass commit hash to tester
This commit is contained in:
parent
62a73f48cc
commit
a3e3de4735
@ -8,6 +8,16 @@ end
|
||||
desc 'Run all tests (JS and code in a standalone environment)'
|
||||
task 'docker:test' do
|
||||
begin
|
||||
|
||||
exit 1 unless run_or_fail("git remote update")
|
||||
|
||||
checkout = "master"
|
||||
if hash = ENV['COMMIT_HASH']
|
||||
checkout = hash
|
||||
end
|
||||
exit 1 unless run_or_fail("git checkout #{checkout}")
|
||||
exit 1 unless run_or_fail("bundle")
|
||||
|
||||
puts "Cleaning up old test tmp data in tmp/test_data"
|
||||
`rm -fr tmp/test_data && mkdir -p tmp/test_data/redis && mkdir tmp/test_data/pg`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user