fix ci run
This commit is contained in:
parent
6745a5e5c1
commit
8189082e4c
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue