From bf5201b11c3ce26ea3b516fbb8864d9a7ddfa775 Mon Sep 17 00:00:00 2001 From: Marc Anguera Insa Date: Sat, 29 Nov 2014 17:09:46 +0100 Subject: [PATCH] run migrations before tests --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a3e00f1..96efccd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: ruby -rvm: 2.1 +rvm: + - 2.1 env: DATABASE_URL=postgres://postgres@localhost/timeoverflow_test before_script: - - psql -c 'create database timeoverflow_test;' -U postgres \ No newline at end of file + - psql -c 'create database timeoverflow_test;' -U postgres + - RAILS_ENV=test bundle exec rake db:migrate \ No newline at end of file