Skip to content

Instantly share code, notes, and snippets.

@mcspring
Last active December 31, 2015 21:59
Show Gist options
  • Save mcspring/8050998 to your computer and use it in GitHub Desktop.
Save mcspring/8050998 to your computer and use it in GitHub Desktop.
Spring up Rails testing within Jenkins
export LANG=en_US.UTF-8
export RAILS_ENV=test
mkdir -p tmp/miniprofiler
. /var/lib/jenkins/.rvm/environments/ruby-2.0.0-p353
time bundle install 2>&1 > /dev/null
# force spring reload
touch config/application.rb
bin/rake db:reset 2>&1 > /dev/null
#bin/rake db:seed 2>&1 > /dev/null
bin/rake ts:rebuild 2>&1 > /dev/null
COVERAGE=on time bin/rake ci:setup:rspec spec
#mkdir -p features/html/
#bundle exec cucumber -f html -o features/html/index.html -f pretty --tags ~@wip || true
bin/rake ts:stop
@mcspring
Copy link
Author

There is a bug when using this stuff with jenkins, see rails/spring#231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment