[TOOLS][TESTS] Make tests run as www-data
This commit is contained in:
parent
fc9b934bbc
commit
ffa3774c46
|
@ -3,6 +3,6 @@ FROM gsocial/php
|
||||||
WORKDIR /var/www/social
|
WORKDIR /var/www/social
|
||||||
|
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk add --no-cache $PHPIZE_DEPS \
|
&& apk add --no-cache $PHPIZE_DEPS runuser \
|
||||||
&& pecl install xdebug \
|
&& pecl install xdebug \
|
||||||
&& docker-php-ext-enable xdebug
|
&& docker-php-ext-enable xdebug
|
||||||
|
|
|
@ -4,7 +4,7 @@ cd /var/www/social || exit 65
|
||||||
|
|
||||||
yes yes | php bin/console doctrine:fixtures:load || exit 65
|
yes yes | php bin/console doctrine:fixtures:load || exit 65
|
||||||
|
|
||||||
if bin/phpunit --coverage-html .test_coverage_report; then
|
if runuser -u www-data -- bin/phpunit --coverage-html .test_coverage_report; then
|
||||||
exit 64
|
exit 64
|
||||||
else
|
else
|
||||||
exit 65
|
exit 65
|
||||||
|
|
Loading…
Reference in New Issue
Block a user