travis conf

This commit is contained in:
gitlabhq 2011-11-15 08:51:43 -05:00
parent 37346ead30
commit 3538ae8500
2 changed files with 6 additions and 0 deletions

View file

@ -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"

View file

@ -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)