Commit 3538ae85003ead7cd2d425b74426dac2accaa72a
1 parent
37346ead
Exists in
master
and in
4 other branches
travis conf
Showing
2 changed files
with
6 additions
and
0 deletions
Show diff stats
.travis.yml
@@ -3,6 +3,8 @@ branches: | @@ -3,6 +3,8 @@ branches: | ||
3 | - 'master' | 3 | - 'master' |
4 | rvm: 1.9.2 | 4 | rvm: 1.9.2 |
5 | before_script: | 5 | before_script: |
6 | + - "bundle exec rake db:create RAILS_ENV=test" | ||
7 | + - "bundle exec rake db:migrate RAILS_ENV=test" | ||
6 | - "bundle exec rake db:seed_fu RAILS_ENV=test" | 8 | - "bundle exec rake db:seed_fu RAILS_ENV=test" |
7 | - "sh -e /etc/init.d/xvfb start" | 9 | - "sh -e /etc/init.d/xvfb start" |
8 | script: "bundle exec rake travis" | 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 | # Create dir for test repo | 5 | # Create dir for test repo |
2 | repo_dir = File.join(Rails.root, "tmp", "tests") | 6 | repo_dir = File.join(Rails.root, "tmp", "tests") |
3 | Dir.mkdir(repo_dir) unless File.exists?(repo_dir) | 7 | Dir.mkdir(repo_dir) unless File.exists?(repo_dir) |