Added a travis CI config.
This commit is contained in:
parent
dd118a7147
commit
930a67429d
10
.travis.yml
Normal file
10
.travis.yml
Normal 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"
|
10
Rakefile
10
Rakefile
@ -68,4 +68,12 @@ task :spec_nix do
|
||||
).collect { |f| File.join('spec', f) }.join(' ')
|
||||
|
||||
sh "bundle exec rspec #{files}"
|
||||
end
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user