diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cc001254e8ea3c8303a2dbc100bf31ee2d961836..9dc952bd1af7a45aef2596a30107bfeb2ea24f71 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -101,3 +101,15 @@ deploy: docker-compose -f docker-compose.yml up -d && exit " + +load-test: + image: busybox + stage: performance-test + only: + - schedules + script: + - wget --post-data "user_count=$USER_COUNT&spawn_rate=$SPAWN_RATE&host=http://nginx:80" https://tbcare-be-staging.cs.ui.ac.id/locust/swarm + - sleep 600 + - wget https://tbcare-be-staging.cs.ui.ac.id/locust/stop + +