зеркало из https://github.com/mozilla/kitsune.git
Use urlwait for circle tests
Hopefully fix the "database has gone away" problems.
This commit is contained in:
Родитель
be8f5c0712
Коммит
8bf5f39c5e
|
@ -22,9 +22,4 @@ jobs:
|
|||
- run:
|
||||
name: Run unit tests
|
||||
command: |
|
||||
docker-compose up -d mariadb
|
||||
docker-compose up -d elasticsearch
|
||||
docker-compose up -d redis
|
||||
# Replace with urlwait or takis
|
||||
sleep 10s;
|
||||
docker-compose -f docker-compose.yml -f docker/composefiles/test.yml run web ./bin/run-unit-tests.sh
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
# wait on database in DATABASE_URL to be ready
|
||||
urlwait
|
||||
|
||||
./manage.py test --noinput --nologcapture -a '!search_tests' --with-nicedots
|
||||
|
|
|
@ -132,3 +132,6 @@ scandir==1.6 \
|
|||
ipython_genutils==0.2.0 \
|
||||
--hash=sha256:72dd37233799e619666c9f639a9da83c34013a73e8bbc79a7a6348d93c61fab8 \
|
||||
--hash=sha256:eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8
|
||||
urlwait==0.4 \
|
||||
--hash=sha256:395fc0c2a7f9736858a2c2f449aa20c6e9da1f86bfc2d1fda4f2f5b78a5c115a \
|
||||
--hash=sha256:fc39ff2c8abbcaad5043e1f79699dcb15a036cc4b0ff4d1aa825ea105d4889ff
|
||||
|
|
Загрузка…
Ссылка в новой задаче