Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2021
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.10 KB | None | 0 0
  1. # For project K
  2.  
  3. for i in {55..71}
  4. do
  5.   git checkout composer.json
  6.   php -d memory_limit=-1 ~/bin/composer req phpstan/phpstan-symfony "^0.12" phpstan/phpstan-doctrine "^0.12" phpstan/phpstan "0.12.$i"
  7.   printf "\n\n## PHPStan 0.12.$i\n\n" >> bin/test-phpstan.md
  8.   rm -rf /tmp/phpstan/
  9.   vendor/bin/phpstan analyze src --debug -vvv --memory-limit=3G 2>&1 >/dev/null | grep "Used memory" >> bin/test-phpstan.md
  10.   rm -rf /tmp/phpstan/
  11.   { time vendor/bin/phpstan analyze src --memory-limit=3G ; } 2>&1 >/dev/null | egrep 'real|user|sys' >> bin/test-phpstan.md
  12. done
  13.  
  14. # For project P
  15.  
  16. for i in {55..71}
  17. do
  18.   git checkout composer.json
  19.   php -d memory_limit=-1 bin/composer.phar req phpstan/phpstan-symfony "^0.12" phpstan/phpstan "0.12.$i"
  20.   printf "\n\n## PHPStan 0.12.$i\n\n" >> bin/test-phpstan.md
  21.   rm -rf /tmp/phpstan/
  22.   vendor/bin/phpstan analyze src --debug -vvv --memory-limit=3G 2>&1 >/dev/null | grep "Used memory" >> bin/test-phpstan.md
  23.   rm -rf /tmp/phpstan/
  24.   { time vendor/bin/phpstan analyze src --memory-limit=3G ; } 2>&1 >/dev/null | egrep 'real|user|sys' >> bin/test-phpstan.md
  25. done
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement