Last active
December 31, 2015 21:59
-
-
Save mcspring/8050998 to your computer and use it in GitHub Desktop.
Spring up Rails testing within Jenkins
This file contains 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a bug when using this stuff with jenkins, see rails/spring#231