Skip to content
Snippets Groups Projects
Commit a2da8985 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

ci(tests): rearrange tests to isolate network comp

parent cd746ee6
No related branches found
No related tags found
No related merge requests found
......@@ -29,22 +29,21 @@ before_script:
# - if [ ${var+TRIGGER_PYPI_NAME} ]; then echo "Pipeline triggered by ${TRIGGER_PYPI_NAME}"; poetry add ${TRIGGER_PYPI_NAME}@latest; fi
- export OPT_DEP="test";
- export PYTEST_FOLDER="";
- echo $CI_STAGE_NAME
- if [[ "$CI_STAGE_NAME" == "test" ]]; then echo "Installing system dependencies for ${CI_STAGE_NAME}"; apt update && apt install -y ffmpeg libsm6 libxext6; fi
- if [[ "$CI_JOB_NAME" == "Integration Test" ]]; then echo "Setting flag to compile zeroc-ice"; export OPT_DEP="test,network"; fi
- poetry install -vv --with $OPT_DEP
Local Units Test:
Local Tests:
stage: test
script:
- poetry run pytest --ignore ./tests/aliby
- poetry run pytest --ignore ./tests/aliby/network
# TODO add Network Units
# TODO Split testing in four: Network vs non-network and Unit vs integration
Integration Test:
Network Tools Test:
stage: test
script:
- poetry run pytest ./tests/aliby/
- poetry run pytest ./tests/aliby/network
Code Lint:
stage: check
......
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment