[Asterisk-code-review] CI: use Python3 virtual environment (asterisk[16])

Michael Bradeen asteriskteam at digium.com
Wed Aug 24 16:48:51 CDT 2022


Attention is currently required from: George Joseph.
Michael Bradeen has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/18965 )

Change subject: CI: use Python3 virtual environment
......................................................................


Patch Set 2:

(1 comment)

File tests/CI/runTestsuite.sh:

https://gerrit.asterisk.org/c/asterisk/+/18965/comment/2f75c509_98021b56 
PS1, Line 15: if [[ "$VIRTUAL_ENV" != "" ]]
            : then
            : 		echo "Detected activated virtual environment:"
            : 		echo $VIRTUAL_ENV
            : 		echo "Skipping creation of new environment"
            : else
            : 	python3 -m venv ${TESTSUITE_DIR}/.venv
            : 	source ${TESTSUITE_DIR}/.venv/bin/activate
            : 	if [[ "$VIRTUAL_ENV" != "" ]]
            : 	then
            : 		echo "Successfully activated virtual environment:"
            : 		echo $VIRTUAL_ENV
            : 		python -m pip install --upgrade pip
            : 		python -m pip install wheel setuptools build
            : 		python -m pip install -r ./requirements.txt
            : 		python -m pip install -r ./extras.txt
            : 	else
            : 		echo "Virtual environment failed, attempting fall-back method"
            : 		export PYTHONPATH=./lib/python/
            : 	fi
            : fi
> This logic should be placed in a top-level script in the testsuite (setup. […]
moved



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18965
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I92ec7dec751ad455503a584d6e860db88c56d6bc
Gerrit-Change-Number: 18965
Gerrit-PatchSet: 2
Gerrit-Owner: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: George Joseph <gjoseph at digium.com>
Gerrit-Comment-Date: Wed, 24 Aug 2022 21:48:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220824/b7f1a730/attachment.html>


More information about the asterisk-code-review mailing list