Ansible based installer framework.
Run make venv to create a python virtual
environment and install
dependencies within your local checkout.
make venv
The python virtual environment created by make venv will use the
default system python. Providing the FTL_PYTHON environment variable
will override the python version used to create the virtual environment.
FTL_PYTHON=/usr/bin/python3.4 make venv
Activate the virtual env
- For python2.7 environment:
. venv2.7/bin/activate
- For python3.4 environment:
. venv3.4/bin/activate
Once a virtual environment has been created, ftl_installer will be in PATH.
ftl_installer --help
Run make test to run unit tests,
pep8 style formatting
checks and pyflakes checks.
make test
make test does not operate within the virtual environment and runs
tests against local source using the default system python. Set the
FTL_PYTHON environment variable to override the python version used
to run tests.
FTL_PYTHON=/usr/bin/python3.4 make test
Run make ci to create a virtual environment and run tests within the
virtual environment.
make ci
Set the FTL_PYTHON environment variable to override the python
version used to run CI tests.
FTL_PYTHON=/usr/bin/python3.4 make ci