class Omnitest::Psychic::Factories::TravisTaskFactory

Constants

TASK_PRIORITY

Public Instance Methods

active?() click to toggle source
Calls superclass method
# File lib/omnitest/psychic/factories/travis_factories.rb, line 9
def active?
  super && travis_allowed? && travis_build_installed?
end
travis_allowed?() click to toggle source
# File lib/omnitest/psychic/factories/travis_factories.rb, line 13
def travis_allowed?
  psychic.opts[:travis]
end
travis_build_installed?() click to toggle source
# File lib/omnitest/psychic/factories/travis_factories.rb, line 17
def travis_build_installed?
  # check that the travis-build extension is installed
  # HACK: use the MixlibShellOutExecutor
  Bundler.with_clean_env { `travis help --skip-version-check`.match(/run/) }
end