* Dropped all references to Resque * Moved all jobs under app/workers since that's the Sidekiq convention * Renamed Jobs module to Worker to match new location * Adapted all jobs to Sidekiq * Replaced all enqueue calls with perform_async * Dropped Resque hacks from specs and features, replaced with sidekig/testing in RSpec and sidekig/testing/inline in Cucumber * Updated scripts to start a Sidekiq server * Inline Sidekiq sinatra app * Let Sidekiq create the actual Redis instance * Workaround already initialized constant warnings in service models * Resolved ToDo in one job definition by creating proper exception clases for some errors in receiving posts * Added sidekiq section to configuration to make it completly configurable to the user * Add Sidekiq middleware for clean backtraces * Delay HttpMulti retry to give offline pods a chance to come back up * Do not retry on GUID already taken and alike errors * Be graceful about deleted posts in GatherOEmbedData
13 lines
397 B
Bash
Executable file
13 lines
397 B
Bash
Executable file
#!/bin/sh
|
|
|
|
|
|
# Create a database.yml for the right database
|
|
echo "Setting up database.yml for $DB"
|
|
cp config/database.yml.example config/database.yml
|
|
if [ "$DB" = "postgres" ]; then
|
|
sed -i 's/*common/*postgres_travis/' config/database.yml
|
|
fi
|
|
|
|
command="bundle exec rake --trace ci:travis:${BUILD_TYPE}"
|
|
|
|
exec xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0 1280x1024x8" $command
|