Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Created August 28, 2013 10:00
Show Gist options
  • Save t-oginogin/6364370 to your computer and use it in GitHub Desktop.
Save t-oginogin/6364370 to your computer and use it in GitHub Desktop.

JenkinsでRailsのテスト実行

ビルド手順の追加で”シェルの実行”

#!/bin/bash --login
source ~/.bashrc

rvm use 2.0.0

cd $WORKSPACE
bundle install --without development production
bundle exec rake db:migrate RAILS_ENV=test
bundle exec rake db:test:prepare RAILS_ENV=test
bundle exec rake test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment