mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-31 09:09:53 -04:00
Allow to pass commit hash to tester
This commit is contained in:
parent
62a73f48cc
commit
a3e3de4735
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue