travis
This commit is contained in:
parent
ed5e19a518
commit
37346ead30
2 changed files with 15 additions and 0 deletions
8
.travis.yml
Normal file
8
.travis.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- 'master'
|
||||||
|
rvm: 1.9.2
|
||||||
|
before_script:
|
||||||
|
- "bundle exec rake db:seed_fu RAILS_ENV=test"
|
||||||
|
- "sh -e /etc/init.d/xvfb start"
|
||||||
|
script: "bundle exec rake travis"
|
7
lib/tasks/travis.rake
Normal file
7
lib/tasks/travis.rake
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
task :travis do
|
||||||
|
["rspec spec"].each do |cmd|
|
||||||
|
puts "Starting to run #{cmd}..."
|
||||||
|
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
||||||
|
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue