ToasterSetupVenv creates a virtualenv and install requeriments for run toaster and toaster tests.
Signed-off-by: Aníbal Limón <[email protected]> --- .../autobuilder/buildsteps/ToasterSetupVenv.py | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lib/python2.7/site-packages/autobuilder/buildsteps/ToasterSetupVenv.py diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/ToasterSetupVenv.py b/lib/python2.7/site-packages/autobuilder/buildsteps/ToasterSetupVenv.py new file mode 100644 index 0000000..54cf1e7 --- /dev/null +++ b/lib/python2.7/site-packages/autobuilder/buildsteps/ToasterSetupVenv.py @@ -0,0 +1,31 @@ +''' +Created on Feb 15, 2016 + +__author__ = "Anibal (alimon) Limon" +__copyright__ = "Copyright 2016, Intel Corp." +__credits__ = ["Anibal Limon"] +__license__ = "GPL" +__version__ = "2.0" +__maintainer__ = "Anibal Limon" +__email__ = "[email protected]" +''' + +from lib.buildsteps import ShellCommandCleanEnv + +class ToasterSetupVenv(ShellCommandCleanEnv): + haltOnFailure = True + flunkOnFailure = True + name = "ToasterSetupVenv" + + def __init__(self, factory, argdict=None, **kwargs): + self.factory = factory + self.description = "Creating virtualenv..." + + oe_cmd = "source ./oe-init-build-env;" + venv_cmd = "virtualenv venv; source venv/bin/activate;" + install_cmd = "pip install -r ../bitbake/toaster-requirements.txt;" + install_tests_cmd = "pip install -r ../bitbake/toaster-tests-requirements.txt;" + + self.command = oe_cmd + venv_cmd + install_cmd + install_tests_cmd + + ShellCommandCleanEnv.__init__(self, factory, argdict, **kwargs) -- 2.1.4 -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
