No description
| .gitlab/issue_templates | ||
| .vscode | ||
| app | ||
| bootstrap | ||
| client@ee1b3acd27 | ||
| config | ||
| database | ||
| public | ||
| resources | ||
| routes | ||
| storage | ||
| tests | ||
| .browserslistrc | ||
| .editorconfig | ||
| .env.example | ||
| .env.testing | ||
| .eslintrc.json | ||
| .gitattributes | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .gitmodules | ||
| .stylelintrc.json | ||
| artisan | ||
| CHANGELOG.md | ||
| composer.json | ||
| composer.lock | ||
| jsconfig.json | ||
| LICENCE.md | ||
| package-lock.json | ||
| package.json | ||
| phpcs.xml | ||
| phpunit.xml | ||
| README.md | ||
| test.sh | ||
| tsconfig.json | ||
| vite.config.ts | ||
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