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

View file

@ -13,13 +13,14 @@ steps:
integration_tests: integration_tests:
image: python image: python
commands: 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 & - 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 - 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 & - 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 - 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 & - 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: build_docker_img:
image: plugins/docker image: plugins/docker