Sha256: 504474f4f0df15d65dbbea0c7bd21f6cbb945b047849057472a48b41f3abfaa0
Contents?: true
Size: 879 Bytes
Versions: 1
Compression:
Stored size: 879 Bytes
Contents
module Omnitest class Psychic module Factories class TravisTaskFactory < MagicTaskFactory TASK_PRIORITY = 2 magic_file '.travis.yml' register_task_factory def active? super && travis_allowed? && travis_build_installed? end def travis_allowed? psychic.opts[:travis] end 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 task :bootstrap do psychic.execute('travis run --print --skip-version-check install').stdout end task :unittest do psychic.execute('travis run --print --skip-version-check script').stdout end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omnitest-psychic-0.0.9 | lib/omnitest/psychic/factories/travis_factories.rb |