try breaking up travis build into components
This commit is contained in:
parent
a87ba6cbfa
commit
29f5ce1577
1 changed files with 10 additions and 4 deletions
|
|
@ -2,10 +2,16 @@ namespace :ci do
|
|||
|
||||
desc "Run tests in the cloud. ZOMG!"
|
||||
task :travis do
|
||||
["rspec spec", "rake jasmine:ci", "rake cucumber"].each do |cmd|
|
||||
puts "Starting to run #{cmd}..."
|
||||
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
||||
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
||||
if ENV['BUILD_TYPE'] == 'cucumber'
|
||||
puts "Running cucumber features..."
|
||||
system("export DISPLAY=:99.0 && bundle exec rake cucumber")
|
||||
raise "Cucumber failed!" unless $?.exitstatus == 0
|
||||
else
|
||||
["rspec spec", "rake jasmine:ci"].each do |cmd|
|
||||
puts "Starting to run #{cmd}..."
|
||||
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
||||
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue