Sha256: 36467d5ba6538ba0c1d25a115e8573a0e26552095b5247668f29d50dba951789

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'busser/runner_plugin'

# A Busser runner plugin for Mamba.
#
# @author Jaime Gil de Sagredo Luna <jaimegildesagredo@gmail.com>
#
class Busser::RunnerPlugin::Mamba < Busser::RunnerPlugin::Base
  postinstall do
    run!("pip install -e git+git://github.com/nestorsalceda/mamba.git#egg=mamba")
  end

  def test
    mamba_path = suite_path('mamba').to_s
    requirements_file = File.join(mamba_path, 'requirements.txt')

    if File.exists?(requirements_file)
      run!("pip install -r #{requirements_file}")
    end

    run!("mamba #{mamba_path}")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
busser-mamba-0.1.0 lib/busser/runner_plugin/mamba.rb