fix: use python virtualenv

This commit is contained in:
Aravinth Manivannan 2023-12-31 02:37:01 +05:30
parent ae6651e624
commit f47c0867d3
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
1 changed files with 3 additions and 2 deletions

View File

@ -13,13 +13,14 @@ steps:
integration_tests:
image: python
commands:
- pip install -r requirements.txt
- pip install virtualenv
- . venv/bin/activate && pip install -r requirements.txt
- nohup ./target/debug/main --id 1 --http-addr 127.0.0.1:9001 --introducer-addr 127.0.0.1:9001 --introducer-id 1 --cluster-size 3 &
- sleep 1
- nohup ./target/debug/main --id 2 --http-addr 127.0.0.1:9002 --introducer-addr 127.0.0.1:9001 --introducer-id 1 --cluster-size 3 &
- sleep 1
- nohup ./target/debug/main --id 3 --http-addr 127.0.0.1:9003 --introducer-addr 127.0.0.1:9001 --introducer-id 1 --cluster-size 3 &
- python tests/test.py
- . venv/bin/activate && python tests/test.py
build_docker_img:
image: plugins/docker