fix ci run

This commit is contained in:
randx 2012-06-16 13:20:17 +03:00
parent 6745a5e5c1
commit 8189082e4c
2 changed files with 2 additions and 3 deletions

View file

@ -16,6 +16,5 @@ before_script:
- "bundle exec rake db:create RAILS_ENV=test" - "bundle exec rake db:create RAILS_ENV=test"
- "bundle exec rake db:migrate 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"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start" - "sh -e /etc/init.d/xvfb start"
script: "bundle exec rake gitlab:test" script: "bundle exec rake travis"

View file

@ -1,5 +1,5 @@
task :travis do task :travis do
["rspec spec"].each do |cmd| ["rspec spec", "rake cuucmber"].each do |cmd|
puts "Starting to run #{cmd}..." puts "Starting to run #{cmd}..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}") system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0 raise "#{cmd} failed!" unless $?.exitstatus == 0