From d61b6c12808d8bc0febab9087470e31eb8a21aab Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sun, 14 Feb 2016 14:02:53 +0800 Subject: [PATCH] smarter db creation. don't use db:reset or db:setup. This jenkins setup will load and migrate db without seeding. --- bin/jenkins-test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/jenkins-test.sh b/bin/jenkins-test.sh index f9059d30..0afd3f66 100755 --- a/bin/jenkins-test.sh +++ b/bin/jenkins-test.sh @@ -21,5 +21,8 @@ sed -i -e "s/DB_USERNAME='.*'/DB_USERNAME='jenkins'/" .env #test bundle install -rake db:create db:test:prepare +rake db:drop +rake db:create +rake db:schema:load +rake db:migrate COVERAGE=on bundle exec rspec