Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (39 sloc) 1.246 kb
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
# $stdout.sync = true
# $: << File.expand_path('../lib', __FILE__)
#
# require 'rake'
# require 'resque/tasks'
# require 'travis'
$stdout.sync = true
require File.expand_path('../config/application', __FILE__)
# $: << File.expand_path('../lib', __FILE__)
require 'rake'
require 'resque/tasks'
require 'travis'
# task :default => [:cucumber, :test]
TravisRails::Application.load_tasks
task 'travis:config' do
Travis::Builder.init
end
task 'resque:setup' => 'travis:config'
namespace :heroku do
task :config do
puts "Reading config/travis.yml and sending config vars to Heroku ..."
config = YAML.load_file('config/travis.yml')['production'] rescue {}
command = "heroku config:add travis_config=#{Shellwords.escape(YAML.dump(config))}"
Bundler.with_clean_env do
system(command)
system('heroku restart')
end
end
end
# # gaaawd, rake.
# Rake.application['test'].actions.clear
# task :test do
# STDOUT.sync = true
# system('ruby -Itest test/all.rb')
# state = $?
# exit(state.exitstatus) if state.exited? and state.exitstatus != 0
# end
Jump to Line
Something went wrong with that request. Please try again.