Commit 3538ae85003ead7cd2d425b74426dac2accaa72a

Authored by gitlabhq
1 parent 37346ead

travis conf

Showing 2 changed files with 6 additions and 0 deletions   Show diff stats
.travis.yml
... ... @@ -3,6 +3,8 @@ branches:
3 3 - 'master'
4 4 rvm: 1.9.2
5 5 before_script:
  6 + - "bundle exec rake db:create RAILS_ENV=test"
  7 + - "bundle exec rake db:migrate RAILS_ENV=test"
6 8 - "bundle exec rake db:seed_fu RAILS_ENV=test"
7 9 - "sh -e /etc/init.d/xvfb start"
8 10 script: "bundle exec rake travis"
... ...
db/fixtures/test/001_repo.rb
  1 +# create tmp dir if not exist
  2 +tmp_dir = File.join(Rails.root, "tmp")
  3 +Dir.mkdir(tmp_dir) unless File.exists?(tmp_dir)
  4 +
1 5 # Create dir for test repo
2 6 repo_dir = File.join(Rails.root, "tmp", "tests")
3 7 Dir.mkdir(repo_dir) unless File.exists?(repo_dir)
... ...