namespace :travis do

  desc "Runs rspec specs on travis"
  task :run_specs 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

end

task :travis => 'travis:run_specs'

namespace :travis do

  desc "Runs rspec specs and jasmine specs on travis"
  task :run_specs do
    ["rspec spec", "rake --trace  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

task :travis => 'travis:run_specs'
Revert "Removes jasmine tests from running on Travis for now."
Revert "Removes jasmine tests from running on Travis for now."

This reverts commit af68f7b4c258f5908f57b14e4047c2240c8b2a0b.
