ci: Give redis some time to start?

This commit is contained in:
Inex Code 2023-07-17 19:55:16 +03:00
parent 7fe802eb1d
commit 20f3e5c564

View file

@ -8,6 +8,7 @@ steps:
- kill $(ps aux | grep 'redis-server 127.0.0.1:6389' | awk '{print $2}') || true - kill $(ps aux | grep 'redis-server 127.0.0.1:6389' | awk '{print $2}') || true
- redis-server --bind 127.0.0.1 --port 6389 >/dev/null & - redis-server --bind 127.0.0.1 --port 6389 >/dev/null &
# We do not care about persistance on CI # We do not care about persistance on CI
- sleep 10
- redis-cli -h 127.0.0.1 -p 6389 config set stop-writes-on-bgsave-error no - redis-cli -h 127.0.0.1 -p 6389 config set stop-writes-on-bgsave-error no
- coverage run -m pytest -q - coverage run -m pytest -q
- coverage xml - coverage xml