CI: Disable redis errors on write failures

This commit is contained in:
Inex Code 2023-07-17 17:39:34 +03:00
parent 45011450c5
commit 8805f73812

View file

@ -7,6 +7,8 @@ steps:
commands: commands:
- 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
- redis-cli config set stop-writes-on-bgsave-error no
- coverage run -m pytest -q - coverage run -m pytest -q
- coverage xml - coverage xml
- sonar-scanner -Dsonar.projectKey=SelfPrivacy-REST-API -Dsonar.sources=. -Dsonar.host.url=http://analyzer.lan:9000 -Dsonar.login="$SONARQUBE_TOKEN" - sonar-scanner -Dsonar.projectKey=SelfPrivacy-REST-API -Dsonar.sources=. -Dsonar.host.url=http://analyzer.lan:9000 -Dsonar.login="$SONARQUBE_TOKEN"