Skip to content

Commit

Permalink
fix: memory errors with phpcs within docker
Browse files Browse the repository at this point in the history
  • Loading branch information
carine-bonnafous committed Jul 3, 2024
1 parent db0c90a commit 1dc5a24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ tasks:
deps:
- build:php5-6
cmds:
- docker compose run --rm php5-6 php ./src/vendor/bin/phpcs src
- docker compose run --rm php5-6 php ./src/vendor/bin/phpcs --standard=src/phpcs.xml src

lint:fix:
desc: Run linter with autofix
deps:
- build:php5-6
cmds:
- docker compose run --rm php5-6 php ./src/vendor/bin/phpcbf src
- docker compose run --rm php5-6 php ./src/vendor/bin/phpcbf --standard=src/phpcs.xml src

php-compatibility:
desc: Check compatibility code
deps:
- build:php5-6
cmds:
- docker compose run --rm php5-6 php ./src/vendor/bin/phpcs -p src --standard=PHPCompatibility -s --runtime-set testVersion 5.6-8.1 --ignore=\*/vendor/\*
- docker compose run --rm php5-6 php ./src/vendor/bin/phpcs -d memory_limit=512M -p src --standard=PHPCompatibility -s --runtime-set testVersion 5.6-8.1 --ignore='*/vendor/*,src/build/*'

dist:
desc: Build zip file
Expand Down

0 comments on commit 1dc5a24

Please sign in to comment.