]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/orchestrator_cli/run-tox.sh
3 # run from ./ or from ../
4 : ${MGR_ORCHESTRATOR_CLI_VIRTUALENV:=$CEPH_BUILD_DIR/mgr-orchestrator_cli-virtualenv}
7 : ${CEPH_BUILD_DIR:=$PWD/.tox}
8 test -d orchestrator_cli
&& cd orchestrator_cli
10 if [ -e tox.ini
]; then
11 TOX_PATH
=$
(readlink
-f tox.ini
)
13 TOX_PATH
=$
(readlink
-f $
(dirname $0)/tox.ini
)
16 # tox.ini will take care of this.
18 export CEPH_BUILD_DIR
=$CEPH_BUILD_DIR
20 if [ -f ${MGR_ORCHESTRATOR_CLI_VIRTUALENV}/bin
/activate
]
22 source ${MGR_ORCHESTRATOR_CLI_VIRTUALENV}/bin
/activate
25 if [ "$WITH_PYTHON2" = "ON" ]; then
28 if [ "$WITH_PYTHON3" = "ON" ]; then
32 tox
-c ${TOX_PATH} -e ${ENV_LIST}