Skip to content

Instantly share code, notes, and snippets.

@bmaland
Created February 28, 2013 08:08
Show Gist options
  • Save bmaland/5055086 to your computer and use it in GitHub Desktop.
Save bmaland/5055086 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Script for running tests on the continuous integration server.
set -e # exit on error
## Make sure latest gems are installed
bundle install
## Verify that asset precompilation works
bundle exec rake assets:precompile
## Run specs (including phantomjs js integration)
source .env.sample
COVERAGE=1 bundle exec rake ci:setup:rspec spec
## Run brakeman security report
gem install brakeman --no-ri --no-rdoc && brakeman -o brakeman-output.tabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment