Created
December 19, 2013 14:37
-
-
Save sstarr/8040035 to your computer and use it in GitHub Desktop.
A Wercker config for Ruby on Rails, Elasticsearch, Postgres and Qt (for capybara-webkit).
This file contains hidden or 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
box: wercker/ruby | |
services: | |
- wunki/[email protected] | |
- wercker/postgresql | |
build: | |
steps: | |
# Taken from https://gist.github.com/pjvds/6008266 | |
- script: | |
name: Enable virtual display | |
code: |- | |
# Start xvfb which gives the context an virtual display | |
# which is required for tests that require an GUI | |
export DISPLAY=:99.0 | |
start-stop-daemon --start --quiet --pidfile /tmp/xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset | |
# Give xvfb time to start. 3 seconds is the default for all xvfb-run commands. | |
sleep 3 | |
# Install Qt library | |
- install-packages: | |
packages: libqtwebkit-dev | |
# Install the gems | |
- bundle-install | |
# Create the database | |
- rails-database-yml: | |
service: postgresql | |
- script: | |
name: Set up database | |
code: bundle exec rake db:schema:load RAILS_ENV=test | |
- script: | |
name: RSpec | |
code: bundle exec rspec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment