Added a travis CI config.

This commit is contained in:
Mario Visic 2011-10-17 22:55:09 +08:00
parent dd118a7147
commit 930a67429d
2 changed files with 19 additions and 1 deletions

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
script: "bundle exec rake travis"
before_script: "sh -e /etc/init.d/xvfb start"
rvm:
- 1.9.2
- 1.9.3
notifications:
email:
- didier@nocoffee.fr
- mario@mariovisic.com
irc: "irc.freenode.org#locomotivecms"

View File

@ -69,3 +69,11 @@ task :spec_nix do
sh "bundle exec rspec #{files}"
end
task :travis do
["rspec spec", "cucumber"].each do |cmd|
puts "Starting to run #{cmd}..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0
end
end