inveniosoftware / troubleshooting

DEPRECATED - Use the forum instead:
https://invenio-talk.web.cern.ch
5 stars 4 forks source link

Travis build hanging because of missing RabbitMQ service #52

Open slint opened 5 years ago

slint commented 5 years ago

Problem

The Xenial build environment of Travis does not have RabbitMQ installed by default anymore.

Here's an example output from a failing build:

============================= test session starts ==============================
platform linux -- Python 3.5.6, pytest-4.1.0, py-1.8.0, pluggy-0.8.0
rootdir: /home/travis/build/slint/invenio-indexer, inifile: pytest.ini
plugins: pep8-1.0.6, cov-2.7.1, celery-4.3.0
collected 48 items                                                             

tests/conftest.py .                                                      [  2%]
tests/test_api.py .

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated

Solution

The solution is to explicitly install RabbitMQ via the addons option:

addons:
  apt:
    packages:
      - rabbitmq-server