Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MacFJA committed Jan 25, 2021
1 parent 2e74db8 commit e6a486c
Show file tree
Hide file tree
Showing 8 changed files with 512 additions and 145 deletions.
11 changes: 0 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,13 @@ jobs:
sudo docker-php-ext-configure bcmath --enable-bcmath
sudo docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
sudo docker-php-ext-install bcmath xsl gd
- run:
name: Install PHIVE
command: |
wget -O phive.phar https://phar.io/releases/phive.phar
wget -O phive.phar.asc https://phar.io/releases/phive.phar.asc
gpg --keyserver pool.sks-keyservers.net --recv-keys 0x9D8A98B29B2D5D79
gpg --verify phive.phar.asc phive.phar
chmod +x phive.phar
- restore_cache:
keys:
- composer-v1-{{ checksum "composer.lock" }}
- composer-v1-
- run:
name: Change memory limit of PHP
command: sudo bash -c "echo 'memory_limit = -1' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini"
- run:
name: Install tools with PHIVE
command: php phive.phar install --force-accept-unsigned --trust-gpg-keys 4AA394086372C20A,E82B2FB314E9906E,C00543248C87FB13,8A03EA3B385DBAA1,CF1A108D0E7AE720,8101FB57DD8130F0

- run:
name: Run code quality analysis
Expand Down
2 changes: 1 addition & 1 deletion .make/Php.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ analyze-php: docker-compose.yml | vendor
$(COMPOSER) exec -v php-cs-fixer -- fix --dry-run
$(COMPOSER) exec -v unused_scanner -- .unused.php
$(COMPOSER) exec -v security-checker -- security:check
$(COMPOSER) exec -v phpcpd -- --fuzzy --progress src
$(COMPOSER) exec -v phpcpd -- --fuzzy src
$(COMPOSER) exec -v phpmd -- src ansi phpmd.xml
$(COMPOSER) exec -v phpa -- src
$(COMPOSER) exec -v phpstan -- analyse --level=8 --memory-limit=256M src
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"phpmd/phpmd": "^2.8",
"phpstan/phpstan": "^0.12.25",
"rskuipers/php-assumptions": "^0.8.0",
"sebastian/phpcpd": "^5.0",
"sebastian/phpcpd": "^6.0",
"symfony/debug-pack": "*",
"symfony/maker-bundle": "^1.0",
"symfony/polyfill-mbstring": "< 1.22.0",
Expand Down
166 changes: 144 additions & 22 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e6a486c

Please sign in to comment.