No description
Find a file
2023-10-05 09:53:45 +02:00
.gitlab/issue_templates Copy base project 2023-09-20 11:42:42 +02:00
.vscode Services BO ok 2023-09-28 12:05:50 +02:00
app Inco parse job ok 2023-10-04 14:04:03 +02:00
bootstrap Copy base project 2023-09-20 11:42:42 +02:00
client@ee1b3acd27 updated client 2023-10-05 09:53:45 +02:00
config Inco parse job ok 2023-10-04 14:04:03 +02:00
database Full unit tests ok 2023-10-04 09:45:04 +02:00
public Copy base project 2023-09-20 11:42:42 +02:00
resources Inco parse job ok 2023-10-04 14:04:03 +02:00
routes With client Working 2023-10-03 15:27:16 +02:00
storage Copy base project 2023-09-20 11:42:42 +02:00
tests Full unit tests ok 2023-10-04 09:45:04 +02:00
.browserslistrc Copy base project 2023-09-20 11:42:42 +02:00
.editorconfig Copy base project 2023-09-20 11:42:42 +02:00
.env.example Big bump using base project 2023-09-29 16:33:35 +02:00
.env.testing Units tests for api 2023-10-02 14:58:25 +02:00
.eslintrc.json Npm compile 2023-09-26 17:59:01 +02:00
.gitattributes Copy base project 2023-09-20 11:42:42 +02:00
.gitignore Xml jobs ok 2023-09-20 17:50:26 +02:00
.gitlab-ci.yml Copy base project 2023-09-20 11:42:42 +02:00
.gitmodules add client as submodule 2023-10-02 16:30:02 +02:00
.stylelintrc.json Big bump using base project 2023-09-29 16:33:35 +02:00
artisan Copy base project 2023-09-20 11:42:42 +02:00
CHANGELOG.md With client Working 2023-10-03 15:27:16 +02:00
composer.json With client Working 2023-10-03 15:27:16 +02:00
composer.lock With client Working 2023-10-03 15:27:16 +02:00
jsconfig.json Copy base project 2023-09-20 11:42:42 +02:00
LICENCE.md With client Working 2023-10-03 15:27:16 +02:00
package-lock.json Services BO ok 2023-09-28 12:05:50 +02:00
package.json Services BO ok 2023-09-28 12:05:50 +02:00
phpcs.xml Copy base project 2023-09-20 11:42:42 +02:00
phpunit.xml Full unit tests ok 2023-10-04 09:45:04 +02:00
README.md With client Working 2023-10-03 15:27:16 +02:00
test.sh Units tests for api 2023-10-02 14:58:25 +02:00
tsconfig.json Npm compile 2023-09-26 17:59:01 +02:00
vite.config.ts Big bump using base project 2023-09-29 16:33:35 +02:00

Comment lancer les tests unitaires ?

Attention, si vous utilisez juste un .env à la place d'un .env.testing votre base de donnée de developpement sera effacée à chaque lancement des tests unitaires

Etapes :

  • cp .env.testing.example .env.testing (spécial tests unitaires)
  • php artisan key:generate
  • parameter les BDD dans le .env.testing
  • php artisan config:cache
  • git submodule init
  • git submodule update (récupérer le client)
  • composer install
  • service start mysql (votre base de donnée accessible sur 127.0.0.1:3306)
  • chmod u+x ./test.sh
  • php artisan optimize
  • composer run test

Config Supervisor 2 Fichiers :

uwilflucollector-worker.conf Pour les jobs en général

[program:uwilflucollector-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /srcs/artisan queue:work --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
startasgroup=true
killasgroup=true
user=www-data
umask=077
numprocs=8
redirect_stderr=true
stdout_logfile=/srcs/storage/logs/worker.log
stopwaitsecs=3600

uwilflucollector-stats-worker.conf Pour les jobs de stats uniquement

[program:uwilflucollector-stats-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /srcs/artisan queue:work --queue=stats --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
startasgroup=true
killasgroup=true
user=www-data
umask=077
numprocs=1
redirect_stderr=true
stdout_logfile=/srcs/storage/logs/worker.log
stopwaitsecs=3600