Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use specific prestashop version for phpstan #146

Merged
merged 1 commit into from Oct 8, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Use specific prestashop version for phpstan

  • Loading branch information
PierreRambaud committed Oct 8, 2019
commit ff762266d4eb8b5daae22c0e293f9892d4d2ca22
@@ -27,14 +27,14 @@ jobs:
- docker exec -ti temp-ps rm -rf /var/www/html/modules/ps_facetedsearch
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan.neon
- stage: "PHP"
name: "PHPStan on PS 1.7.5.2"
name: "PHPStan on PS 1.7.5.1"
language: php
php: 7.2
script:
- composer install
- docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop:1.7.5.1
- docker exec -ti temp-ps rm -rf /var/www/html/modules/ps_facetedsearch
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan.neon
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan-1.7.5.1.neon
- stage: "PHP"
name: "PHPStan on PS 1.7.4.4"
language: php
@@ -43,7 +43,7 @@ jobs:
- composer install
- docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop:1.7.4.4
- docker exec -ti temp-ps rm -rf /var/www/html/modules/ps_facetedsearch
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan.neon
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan-1.7.4.4.neon
- stage: "PHP"
name: "PHPStan on PS 1.7.3.4"
language: php
@@ -52,7 +52,7 @@ jobs:
- composer install
- docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop:1.7.3.4
- docker exec -ti temp-ps rm -rf /var/www/html/modules/ps_facetedsearch
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan.neon
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan-1.7.3.4.neon
- stage: "PHP"
name: "PHPStan on PS 1.7.2.5"
language: php
@@ -61,7 +61,7 @@ jobs:
- composer install
- docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop:1.7.2.5
- docker exec -ti temp-ps rm -rf /var/www/html/modules/ps_facetedsearch
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan.neon
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan-1.7.2.5.neon
- stage: "PHP"
name: "PHPStan on PS 1.7.1.2"
language: php
@@ -70,7 +70,7 @@ jobs:
- composer install
- docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop:1.7.1.2
- docker exec -ti temp-ps rm -rf /var/www/html/modules/ps_facetedsearch
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan.neon
- docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/ps_facetedsearch -e _PS_ROOT_DIR_=/var/www/html quetzacoalt/phpstan analyse --configuration=/var/www/html/modules/ps_facetedsearch/tests/php/phpstan/phpstan-1.7.1.2.neon

script:
- npm run lint
@@ -0,0 +1,17 @@
parameters:
reportUnmatchedIgnoredErrors: false
bootstrap: /var/www/html/modules/ps_facetedsearch/tests/php/phpstan/bootstrap.php
paths:
- /var/www/html/modules/ps_facetedsearch/src
ignoreErrors:
# module specific
- '~Constant _THEME_COL_DIR_ not found.~'
- '~Iterating over an object of an unknown class mysqli_result\.~'
- '~Access to offset mixed on an unknown class mysqli_result\.~'
- '~Parameter #1 \$master of static method DbCore::getInstance\(\) expects bool, int given\.~'
- '~Parameter #1 \$string of method PrestaShop\\PrestaShop\\Core\\Product\\Search\\URLFragmentSerializer::unserialize\(\) expects string, array given\.~'
- '~Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.~'
- '~constant NUMBERING_SYSTEM_LATIN on an unknown class~'
- '~PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found~'

level: 5
@@ -0,0 +1,17 @@
parameters:
reportUnmatchedIgnoredErrors: false
bootstrap: /var/www/html/modules/ps_facetedsearch/tests/php/phpstan/bootstrap.php
paths:
- /var/www/html/modules/ps_facetedsearch/src
ignoreErrors:
# module specific
- '~Constant _THEME_COL_DIR_ not found.~'
- '~Iterating over an object of an unknown class mysqli_result\.~'
- '~Access to offset mixed on an unknown class mysqli_result\.~'
- '~Parameter #1 \$master of static method DbCore::getInstance\(\) expects bool, int given\.~'
- '~Parameter #1 \$string of method PrestaShop\\PrestaShop\\Core\\Product\\Search\\URLFragmentSerializer::unserialize\(\) expects string, array given\.~'
- '~Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.~'
- '~constant NUMBERING_SYSTEM_LATIN on an unknown class~'
- '~PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found~'

level: 5
@@ -0,0 +1,17 @@
parameters:
reportUnmatchedIgnoredErrors: false
bootstrap: /var/www/html/modules/ps_facetedsearch/tests/php/phpstan/bootstrap.php
paths:
- /var/www/html/modules/ps_facetedsearch/src
ignoreErrors:
# module specific
- '~Constant _THEME_COL_DIR_ not found.~'
- '~Iterating over an object of an unknown class mysqli_result\.~'
- '~Access to offset mixed on an unknown class mysqli_result\.~'
- '~Parameter #1 \$master of static method DbCore::getInstance\(\) expects bool, int given\.~'
- '~Parameter #1 \$string of method PrestaShop\\PrestaShop\\Core\\Product\\Search\\URLFragmentSerializer::unserialize\(\) expects string, array given\.~'
- '~Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.~'
- '~constant NUMBERING_SYSTEM_LATIN on an unknown class~'
- '~PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found~'

level: 5
@@ -0,0 +1,16 @@
parameters:
reportUnmatchedIgnoredErrors: false
bootstrap: /var/www/html/modules/ps_facetedsearch/tests/php/phpstan/bootstrap.php
paths:
- /var/www/html/modules/ps_facetedsearch/src
ignoreErrors:
# module specific
- '~Constant _THEME_COL_DIR_ not found.~'
- '~Iterating over an object of an unknown class mysqli_result\.~'
- '~Access to offset mixed on an unknown class mysqli_result\.~'
- '~Parameter #1 \$master of static method DbCore::getInstance\(\) expects bool, int given\.~'
- '~Parameter #1 \$string of method PrestaShop\\PrestaShop\\Core\\Product\\Search\\URLFragmentSerializer::unserialize\(\) expects string, array given\.~'
- '~Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.~'
- '~PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found~'

level: 5
@@ -0,0 +1,16 @@
parameters:
reportUnmatchedIgnoredErrors: false
bootstrap: /var/www/html/modules/ps_facetedsearch/tests/php/phpstan/bootstrap.php
paths:
- /var/www/html/modules/ps_facetedsearch/src
ignoreErrors:
# module specific
- '~Constant _THEME_COL_DIR_ not found.~'
- '~Iterating over an object of an unknown class mysqli_result\.~'
- '~Access to offset mixed on an unknown class mysqli_result\.~'
- '~Parameter #1 \$master of static method DbCore::getInstance\(\) expects bool, int given\.~'
- '~Parameter #1 \$string of method PrestaShop\\PrestaShop\\Core\\Product\\Search\\URLFragmentSerializer::unserialize\(\) expects string, array given\.~'
- '~Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.~'
- '~PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found~'

level: 5
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.