Skip to content
Snippets Groups Projects
Unverified Commit 962a0d8d authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fail faster

parent 95019adf
No related branches found
No related tags found
No related merge requests found
Pipeline #62121 passed with stages
in 1 minute and 59 seconds
...@@ -13,6 +13,8 @@ stress_test: ...@@ -13,6 +13,8 @@ stress_test:
script: script:
- coverage run --append -m stress_tests - coverage run --append -m stress_tests
- COOLAMQP_FORCE_SELECT_LISTENER=1 coverage run --append -m stress_tests - COOLAMQP_FORCE_SELECT_LISTENER=1 coverage run --append -m stress_tests
variables:
AMQP_HOST: "rabbitmq"
after_script: after_script:
- mv .coverage .coverage.stress - mv .coverage .coverage.stress
artifacts: artifacts:
...@@ -21,18 +23,20 @@ stress_test: ...@@ -21,18 +23,20 @@ stress_test:
unittest: unittest:
stage: test stage: test
image: python:3.11 image: python:3.11 # Default image might have already CoolAMQP installed
services: services:
- name: rabbitmq:3-management - name: rabbitmq:3-management
alias: rabbitmq alias: rabbitmq
before_script: before_script:
- python setup.py install - python setup.py install
- pip install --break-system-packages nose2 coverage - pip install --break-system-packages nose2 coverage requests yapf
- coverage run --append -m compile_definitions - coverage run --append -m compile_definitions
script: script:
- coverage run --append -m nose2 -F -vv - coverage run --append -m nose2 -F -vv
after_script: after_script:
- mv .coverage .coverage.units - mv .coverage .coverage.units
variables:
AMQP_HOST: "rabbitmq"
artifacts: artifacts:
paths: paths:
- ".coverage.units" - ".coverage.units"
......
...@@ -6,7 +6,7 @@ from coolamqp.objects import NodeDefinition ...@@ -6,7 +6,7 @@ from coolamqp.objects import NodeDefinition
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
NODE = NodeDefinition(os.environ.get('AMQP_HOST', 'rabbitmq'), 'guest', 'guest', heartbeat=20) NODE = NodeDefinition(os.environ.get('AMQP_HOST', '127.0.0.1'), 'guest', 'guest', heartbeat=20)
logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.DEBUG)
......
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