Skip to content

Commit

Permalink
Merge branch '6-optimiser-la-ci-de-tests-backend' into 'dev'
Browse files Browse the repository at this point in the history
Resolve "Optimiser la CI de tests backend"

Closes naturalsolutions#6

See merge request natural-solutions/geonature/annotation!36
  • Loading branch information
Maxime Vergez committed Nov 22, 2022
2 parents 3a30aac + 4c86555 commit 673c780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/test-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ USER_ID=$(id -u)
GROUP_ID=$(id -g)

./scripts/docker.sh build --build-arg USER_ID=$USER_ID --build-arg GROUP_ID=$GROUP_ID
./scripts/docker.sh up -d
# Keycloak and api because api depends on db and minio
./scripts/docker.sh up -d keycloak api
./scripts/docker.sh exec api pytest tests --cov-fail-under=${COV_FAIL_UNDER:-70} --cov-report html:/home/app/src/htmlcov --cov=src
./scripts/docker.sh exec api coverage xml
./scripts/docker.sh down -v

0 comments on commit 673c780

Please sign in to comment.