Procházet zdrojové kódy

[TOOLS][TESTS] Adjust configuration for testing environment

remotes/upstream/experimental
Hugo Sales před 2 roky
rodič
revize
d2020eb7d8
Podepsáno: someonewithpc <hugo@hsal.es> ID GPG klíče: 7D0C7EAFC9D835A0
4 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. +1
    -1
      .env.test
  2. +5
    -1
      docker/testing/coverage.sh
  3. +0
    -4
      docker/testing/docker-compose.yaml
  4. +1
    -1
      docker/testing/social.env

+ 1
- 1
.env.test Zobrazit soubor

@@ -3,4 +3,4 @@ KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
DATABASE_URL=postgresql://postgres:password@db:54320/social
DATABASE_URL=postgresql://postgres:password@db:5432/social

+ 5
- 1
docker/testing/coverage.sh Zobrazit soubor

@@ -1,6 +1,10 @@
#!/bin/sh

if /var/www/social/bin/phpunit --coverage-html .test_coverage_report; then
cd /var/www/social || exit 65

yes yes | php bin/console doctrine:fixtures:load || exit 65

if bin/phpunit --coverage-html .test_coverage_report; then
exit 64
else
exit 65


+ 0
- 4
docker/testing/docker-compose.yaml Zobrazit soubor

@@ -22,8 +22,6 @@ services:

db:
image: postgres:alpine
ports:
- 54320:5432
environment:
- PGDATA=/var/lib/postgres/data
env_file:
@@ -34,8 +32,6 @@ services:
redis:
image: redis:alpine
tty: false
ports:
- 63790:6379

volumes:
database:

+ 1
- 1
docker/testing/social.env Zobrazit soubor

@@ -1,5 +1,5 @@
SOCIAL_DBMS=postgres
SOCIAL_DB=social
SOCIAL_DB=test
SOCIAL_USER=postgres
SOCIAL_PASSWORD=password
SOCIAL_DOMAIN=social.localhost


Načítá se…
Zrušit
Uložit