From 61b9a00cea8e96cdda7e644703d3ab5adab8757f Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Mon, 4 Mar 2024 13:15:02 +0400 Subject: [PATCH] ci: run pytest and coverage as part of nix flake check in VM --- .drone.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index fff99ae..19a6610 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,13 +5,7 @@ name: default steps: - name: Run Tests and Generate Coverage Report commands: - - 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 & - # 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 - - coverage run -m pytest -q - - coverage xml + - nix flake check -L - sonar-scanner -Dsonar.projectKey=SelfPrivacy-REST-API -Dsonar.sources=. -Dsonar.host.url=http://analyzer.lan:9000 -Dsonar.login="$SONARQUBE_TOKEN" environment: SONARQUBE_TOKEN: