# -*- encoding: utf-8 -*- require 'busser/runner_plugin' # A Busser runner plugin for Mamba. # # @author Jaime Gil de Sagredo Luna # 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