fix: 🏷️ add Netherlands to the valid countries
This commit is contained in:
parent
21c839f90d
commit
96ea1483f9
4 changed files with 1499 additions and 1410 deletions
51
README.md
51
README.md
|
|
@ -1,52 +1,3 @@
|
|||
# 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 :
|
||||
|
||||
`ldccrm-worker.conf`
|
||||
**Pour les jobs en général**
|
||||
|
||||
[program:ldccrm-worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /u1/DATA01/webldc/Apps/ldccrm/ldccrm-12-2020/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=/u1/DATA01/webldc/Apps/ldccrm/ldccrm-12-2020/srcs/storage/logs/worker.log
|
||||
stopwaitsecs=3600
|
||||
|
||||
`ldccrm-stats-worker.conf`
|
||||
**Pour les jobs de stats uniquement**
|
||||
|
||||
[program:ldccrm-stats-worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /u1/DATA01/webldc/Apps/ldccrm/ldccrm-12-2020/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=/u1/DATA01/webldc/Apps/ldccrm/ldccrm-12-2020/srcs/storage/logs/worker.log
|
||||
stopwaitsecs=3600
|
||||
[Suivre le wiki dédié au tests unitaires](https://lab.s-web.fr/ldc-web/projets/crm/-/wikis/Tests-unitaires)
|
||||
|
|
|
|||
|
|
@ -568,7 +568,8 @@ enum Country: int
|
|||
Country::saintMartinFrenchPart,
|
||||
Country::wallisAndFutuna,
|
||||
Country::frenchPolynesia,
|
||||
Country::newCaledonia
|
||||
Country::newCaledonia,
|
||||
Country::netherlands,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -580,20 +581,21 @@ enum Country: int
|
|||
protected static function isoCodes(): array
|
||||
{
|
||||
return [
|
||||
'france' => 'FR',
|
||||
'belgium' => 'BE',
|
||||
'luxembourg' => 'LU',
|
||||
'guadeloupe' => 'GP',
|
||||
'martinique' => 'MQ',
|
||||
'frenchGuiana' => 'GF',
|
||||
'reunion' => 'RE',
|
||||
'france' => 'FR',
|
||||
'belgium' => 'BE',
|
||||
'luxembourg' => 'LU',
|
||||
'guadeloupe' => 'GP',
|
||||
'martinique' => 'MQ',
|
||||
'frenchGuiana' => 'GF',
|
||||
'reunion' => 'RE',
|
||||
'saintPierreAndMiquelon' => 'PM',
|
||||
'mayotte' => 'YT',
|
||||
'saintBarthelemy' => 'BL',
|
||||
'saintMartinFrenchPart' => 'MF',
|
||||
'wallisAndFutuna' => 'WF',
|
||||
'frenchPolynesia' => 'PF',
|
||||
'newCaledonia' => 'NC',
|
||||
'mayotte' => 'YT',
|
||||
'saintBarthelemy' => 'BL',
|
||||
'saintMartinFrenchPart' => 'MF',
|
||||
'wallisAndFutuna' => 'WF',
|
||||
'frenchPolynesia' => 'PF',
|
||||
'newCaledonia' => 'NC',
|
||||
'netherlands' => 'NL',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ldc/ldccrm",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.1",
|
||||
"type": "project",
|
||||
"description": "LDC CRM",
|
||||
"license": "MIT",
|
||||
|
|
|
|||
2826
composer.lock
generated
2826
composer.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue