From 3538ae85003ead7cd2d425b74426dac2accaa72a Mon Sep 17 00:00:00 2001 From: gitlabhq Date: Tue, 15 Nov 2011 08:51:43 -0500 Subject: [PATCH] travis conf --- .travis.yml | 2 ++ db/fixtures/test/001_repo.rb | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 474ca17c31f..62a5dac6dfe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ branches: - 'master' rvm: 1.9.2 before_script: + - "bundle exec rake db:create RAILS_ENV=test" + - "bundle exec rake db:migrate RAILS_ENV=test" - "bundle exec rake db:seed_fu RAILS_ENV=test" - "sh -e /etc/init.d/xvfb start" script: "bundle exec rake travis" diff --git a/db/fixtures/test/001_repo.rb b/db/fixtures/test/001_repo.rb index 3eb4c299b4a..fa50f841362 100644 --- a/db/fixtures/test/001_repo.rb +++ b/db/fixtures/test/001_repo.rb @@ -1,3 +1,7 @@ +# create tmp dir if not exist +tmp_dir = File.join(Rails.root, "tmp") +Dir.mkdir(tmp_dir) unless File.exists?(tmp_dir) + # Create dir for test repo repo_dir = File.join(Rails.root, "tmp", "tests") Dir.mkdir(repo_dir) unless File.exists?(repo_dir)