Add xvfb start to travis config. Use xvfb in specs.
This commit is contained in:
parent
722a2a86ea
commit
3fe6f47648
2 changed files with 4 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
bundler_args: "--without development production"
|
bundler_args: "--without development production"
|
||||||
rvm:
|
rvm:
|
||||||
- ree
|
- ree
|
||||||
# - 1.9.2
|
- 1.9.2
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- "sass --update public/stylesheets/sass/:public/stylesheets/"
|
- "sass --update public/stylesheets/sass/:public/stylesheets/"
|
||||||
|
|
@ -9,6 +9,7 @@ before_script:
|
||||||
- "rake db:create"
|
- "rake db:create"
|
||||||
- "rake db:schema:load"
|
- "rake db:schema:load"
|
||||||
- "rspec spec --tag fixture"
|
- "rspec spec --tag fixture"
|
||||||
|
- "sh -e /etc/init.d/xvfb start"
|
||||||
script: "bundle exec rake travis"
|
script: "bundle exec rake travis"
|
||||||
env: "TRAVIS=true"
|
env: "TRAVIS=true"
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,8 @@ namespace :cruise do
|
||||||
end
|
end
|
||||||
|
|
||||||
task :travis do
|
task :travis do
|
||||||
["rspec spec", "rake cucumber", "jasmine:ci"].each do |cmd|
|
system('export DISPLAY=:99.0 && CI=true bundle exec rake')
|
||||||
system("bundle exec #{cmd}")
|
raise "tests failed!" unless $?.exitstatus == 0
|
||||||
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
task :cruise => "cruise:cruise"
|
task :cruise => "cruise:cruise"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue