Skip to content

Commit

Permalink
bump up runtime memory limit to 512M, and allow phpcs plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Park committed Oct 27, 2024
1 parent 445898f commit 98146ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ RUN docker-php-ext-install gd bcmath zip intl xsl pdo_mysql soap sockets

RUN mkdir /composer
COPY composer.json /composer
RUN cd /composer && composer install
RUN cd /composer && \
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true && \
composer install

FROM standards-runtime

Expand Down
2 changes: 2 additions & 0 deletions pipe/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def filter_paths(path):
os.mkdir("test-results")

phpcs_command = ["/composer/vendor/bin/phpcs",
"-d",
"memory_limit=512M",
"--report=junit",
f"--standard={self.standards}"
] + changed_files
Expand Down

0 comments on commit 98146ec

Please sign in to comment.