Commit 3538ae85 authored by gitlabhq's avatar gitlabhq

travis conf

parent 37346ead
...@@ -3,6 +3,8 @@ branches: ...@@ -3,6 +3,8 @@ branches:
- 'master' - 'master'
rvm: 1.9.2 rvm: 1.9.2
before_script: 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" - "bundle exec rake db:seed_fu RAILS_ENV=test"
- "sh -e /etc/init.d/xvfb start" - "sh -e /etc/init.d/xvfb start"
script: "bundle exec rake travis" script: "bundle exec rake travis"
# 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 # Create dir for test repo
repo_dir = File.join(Rails.root, "tmp", "tests") repo_dir = File.join(Rails.root, "tmp", "tests")
Dir.mkdir(repo_dir) unless File.exists?(repo_dir) Dir.mkdir(repo_dir) unless File.exists?(repo_dir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment