mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 15:00:19 +00:00
c78ffd5ac4
* Update travis conditional for hatchet to check for HEROKU_API_ env vars [changelog skip] * remove check to skip hatchet in travis in favor of better travis config
25 lines
621 B
Ruby
25 lines
621 B
Ruby
ENV['HATCHET_BUILDPACK_BASE'] = 'https://github.com/heroku/heroku-buildpack-python.git'
|
|
|
|
require 'rspec/core'
|
|
require 'rspec/retry'
|
|
require 'hatchet'
|
|
|
|
require 'date'
|
|
|
|
RSpec.configure do |config|
|
|
config.full_backtrace = true
|
|
config.verbose_retry = true # show retry status in spec process
|
|
config.default_retry_count = 2 if ENV['IS_RUNNING_ON_CI'] # retry all tests that fail again
|
|
config.expect_with :rspec do |c|
|
|
c.syntax = :expect
|
|
end
|
|
end
|
|
|
|
DEFAULT_STACK = 'heroku-18'
|
|
|
|
def run!(cmd)
|
|
out = `#{cmd}`
|
|
raise "Error running command #{cmd} with output: #{out}" unless $?.success?
|
|
return out
|
|
end
|