Unable to integrate pyest/pipenv project with Jenkins #5832
-
Hi All,
Please let me know how to fix this Basically i would like to run below commands from Jenkins and run my test case pipenv install -r requirements.txt --dev file which contains below commands
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is solved from below video Make sure you have installed https://www.youtube.com/watch?v=iotloCXtIzY #!/bin/bash VIRTUAL_ENV_NAME='virtual-environment' echo '### Activate Virtual Environment here ####' echo '### Install requirements ###' pipenv install -r requirements.txt --dev |
Beta Was this translation helpful? Give feedback.
This is solved from below video
Make sure you have installed
sudo apt-get install python3.x-venv
libraryhttps://www.youtube.com/watch?v=iotloCXtIzY
#!/bin/bash
echo " ### Create Pythin environment ### "
source scl_source enable rh-python36 # # This step is NOT required if your python is already piinting to 3.*
VIRTUAL_ENV_NAME='virtual-environment'
python -m venv $VIRTUAL_ENV_NAME
echo '### Activate Virtual Environment here ####'
source $VIRTUAL_ENV_NAME/bin/activate
echo '### Install requirements ###'
pipenv install -r requirements.txt --dev