-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try setting an ENTRYPOINT to get rbenv
- Loading branch information
Showing
2 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
eval "$(rbenv init -)" | ||
|
||
|
||
# Dir.chdir(dashboard_dir) do | ||
# RakeUtils.bundle_install | ||
# puts CDO.dashboard_db_writer | ||
# if ENV['CI'] | ||
# # Prepare for dashboard unit tests to run. We can't seed UI test data | ||
# # yet because doing so would break unit tests. | ||
# RakeUtils.rake 'db:create db:test:prepare' | ||
# else | ||
# RakeUtils.rake_stream_output 'dashboard:setup_db', ([:adhoc, :development].include?(rack_env) ? '--trace' : nil) | ||
# end | ||
# end | ||
|
||
cd dashboard | ||
|
||
# This is used by the dashboard unit tests and is much faster. | ||
# Do we need to seed UI test data by default? | ||
# bundle exec rake db:create db:test:prepare | ||
|
||
bundle exec rake dashboard:setup_db | ||
cd .. | ||
|
||
# Dir.chdir(pegasus_dir) do | ||
# RakeUtils.bundle_install | ||
# RakeUtils.rake 'pegasus:setup_db' | ||
# end | ||
|
||
cd pegasus | ||
bundle exec rake pegasus:setup_db | ||
|
||
echo | ||
echo "DB setup complete." |