forked from OpenMage/magento-lts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged "20.0.14" release into "20.0" branch
With normal merge to keep all the commits
- Loading branch information
Showing
580 changed files
with
7,177 additions
and
4,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
includes: | ||
- ../vendor/macopedia/phpstan-magento1/extension.neon | ||
- phpstan-baseline.neon | ||
parameters: | ||
magentoRootPath: %currentWorkingDirectory% | ||
paths: | ||
#lets start small with just few modules | ||
- %currentWorkingDirectory%/app/code/core/Mage/Admin | ||
- %currentWorkingDirectory%/app/code/core/Mage/Adminhtml | ||
- %currentWorkingDirectory%/app/code/core/Mage/AdminNotification | ||
- %currentWorkingDirectory%/app/code/core/Mage/Api | ||
- %currentWorkingDirectory%/app/code/core/Mage/Api2 | ||
- %currentWorkingDirectory%/app/code/core/Mage/Authorizenet | ||
- %currentWorkingDirectory%/app/code/core/Mage/Backup | ||
- %currentWorkingDirectory%/app/code/core/Mage/Bundle | ||
- %currentWorkingDirectory%/app/code/core/Mage/Captcha | ||
- %currentWorkingDirectory%/app/code/core/Mage/Catalog | ||
- %currentWorkingDirectory%/app/code/core/Mage/CatalogIndex | ||
- %currentWorkingDirectory%/app/code/core/Mage/CatalogInventory | ||
- %currentWorkingDirectory%/app/code/core/Mage/CatalogRule | ||
- %currentWorkingDirectory%/app/code/core/Mage/CatalogSearch | ||
# - %currentWorkingDirectory%/app/code/core/Mage/Centinel | ||
- %currentWorkingDirectory%/app/code/core/Mage/Checkout | ||
- %currentWorkingDirectory%/app/code/core/Mage/Cms | ||
- %currentWorkingDirectory%/app/code/core/Mage/ConfigurableSwatches | ||
- %currentWorkingDirectory%/app/code/core/Mage/Contacts | ||
- %currentWorkingDirectory%/app/code/core/Mage/Core | ||
- %currentWorkingDirectory%/app/code/core/Mage/Cron | ||
- %currentWorkingDirectory%/app/code/core/Mage/CurrencySymbol | ||
- %currentWorkingDirectory%/app/code/core/Mage/Customer | ||
- %currentWorkingDirectory%/app/code/core/Mage/Dataflow | ||
- %currentWorkingDirectory%/app/code/core/Mage/Directory | ||
- %currentWorkingDirectory%/app/code/core/Mage/Downloadable | ||
- %currentWorkingDirectory%/app/code/core/Mage/Eav | ||
- %currentWorkingDirectory%/app/code/core/Mage/GiftMessage | ||
- %currentWorkingDirectory%/app/code/core/Mage/GoogleAnalytics | ||
- %currentWorkingDirectory%/app/code/core/Mage/GoogleCheckout | ||
- %currentWorkingDirectory%/app/code/core/Mage/ImportExport | ||
- %currentWorkingDirectory%/app/code/core/Mage/Index | ||
- %currentWorkingDirectory%/app/code/core/Mage/Install | ||
- %currentWorkingDirectory%/app/code/core/Mage/Log | ||
- %currentWorkingDirectory%/app/code/core/Mage/Media | ||
- %currentWorkingDirectory%/app/code/core/Mage/Newsletter | ||
- %currentWorkingDirectory%/app/code/core/Mage/Oauth | ||
- %currentWorkingDirectory%/app/code/core/Mage/Page | ||
- %currentWorkingDirectory%/app/code/core/Mage/PageCache | ||
- %currentWorkingDirectory%/app/code/core/Mage/Paygate | ||
- %currentWorkingDirectory%/app/code/core/Mage/Payment | ||
- %currentWorkingDirectory%/app/code/core/Mage/Paypal | ||
# - %currentWorkingDirectory%/app/code/core/Mage/PaypalUk | ||
- %currentWorkingDirectory%/app/code/core/Mage/Persistent | ||
- %currentWorkingDirectory%/app/code/core/Mage/Poll | ||
- %currentWorkingDirectory%/app/code/core/Mage/ProductAlert | ||
- %currentWorkingDirectory%/app/code/core/Mage/Rating | ||
- %currentWorkingDirectory%/app/code/core/Mage/Reports | ||
- %currentWorkingDirectory%/app/code/core/Mage/Review | ||
- %currentWorkingDirectory%/app/code/core/Mage/Rss | ||
- %currentWorkingDirectory%/app/code/core/Mage/Rule | ||
- %currentWorkingDirectory%/app/code/core/Mage/Sales | ||
- %currentWorkingDirectory%/app/code/core/Mage/SalesRule | ||
- %currentWorkingDirectory%/app/code/core/Mage/Sendfriend | ||
- %currentWorkingDirectory%/app/code/core/Mage/Shipping | ||
- %currentWorkingDirectory%/app/code/core/Mage/Sitemap | ||
- %currentWorkingDirectory%/app/code/core/Mage/Tag | ||
- %currentWorkingDirectory%/app/code/core/Mage/Tax | ||
- %currentWorkingDirectory%/app/code/core/Mage/Uploader | ||
# - %currentWorkingDirectory%/app/code/core/Mage/Usa | ||
- %currentWorkingDirectory%/app/code/core/Mage/Widget | ||
# - %currentWorkingDirectory%/app/code/core/Mage/Weee | ||
- %currentWorkingDirectory%/app/code/core/Mage/Wishlist | ||
excludePaths: | ||
#incompatible interfaces | ||
- */app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php | ||
- */app/code/core/Mage/Admin/Model/Acl/Assert/Time.php | ||
- */app/code/core/Mage/Api/Model/Acl/Assert/Ip.php | ||
- */app/code/core/Mage/Api/Model/Acl/Assert/Time.php | ||
- */app/code/core/Mage/Adminhtml/Block/Widget/Grid/Block.php | ||
- */app/code/core/Mage/Core/Model/Mysql4/Design/Theme/Collection.php | ||
# deprecated _getHelper() | ||
- */app/code/core/Mage/Adminhtml/Controller/Rss/Abstract.php | ||
- */app/code/core/Mage/Adminhtml/controllers/Rss/OrderController.php | ||
- */app/code/core/Mage/Adminhtml/controllers/Rss/CatalogController.php | ||
|
||
# contains 1 abstract method and must therefore be declared abstract or implement the remaining methods | ||
- */app/code/core/Mage/Dataflow/Model/Session/Adapter/Http.php | ||
- */app/code/core/Mage/Dataflow/Model/Convert/Iterator/Http.php | ||
- */app/code/core/Mage/Dataflow/Model/Convert/Iterator/File/Csv.php | ||
|
||
# Cannot declare class Varien_Date, because the name is already in use | ||
- */app/code/core/Mage/Catalog/Model/Product/Option/Type/Date.php | ||
|
||
# Class phpseclib\Net\SSH2 not found. | ||
- */Paypal/Model/Report/Settlement.php | ||
|
||
# Class backup/db was not found while trying to analyse it | ||
- */Adminhtml/controllers/System/BackupController.php | ||
|
||
# Dataflow/Model/Convert/Iterator.php | ||
- */Dataflow/Model/Convert/Iterator.php | ||
|
||
level: 0 | ||
# universalObjectCratesClasses: | ||
# - Varien_Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
includes: | ||
- ./phpstan.neon | ||
parameters: | ||
level: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: OpenMage LTS - Sonar - Full Analyses | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
|
||
|
||
jobs: | ||
unit: | ||
name: Unit Tests on ${{ matrix.php-versions }} | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
max-parallel: 5 | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['7.4', '8.1'] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring | ||
tools: composer, pecl, phpcs, phpstan, phpunit:9.5 | ||
ini-values-csv: pcov.directory=api, post_max_size=256M, short_open_tag=On #optional, setup php.ini configuration | ||
coverage: pcov #optional, setup coverage driver | ||
env: | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Prepare | ||
run: | | ||
php -v | ||
composer --version | ||
composer install --dev -n --prefer-source --ignore-platform-req=php | ||
- name: Run Unit Tests | ||
run: phpunit --configuration ./dev/phpunit.xml.dist --testsuite=Unit; | ||
- name: prepare SonarCloud Scan Data | ||
continue-on-error: true | ||
if: ${{ matrix.php-versions == '8.1' }} | ||
run: | | ||
echo $PWD | ||
ls -la | ||
head ./dev/tests/clover.xml | ||
sed -i 's@'$GITHUB_WORKSPACE'/@/github/workspace/@g' ./dev/tests/junit.xml | ||
sed -i 's@'$GITHUB_WORKSPACE'/@/github/workspace/@g' ./dev/tests/clover.xml | ||
head ./dev/tests/clover.xml | ||
ls -la | ||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
continue-on-error: true | ||
if: ${{ matrix.php-versions == '8.1' }} && SONAR_TOKEN | ||
with: | ||
args: > | ||
-Dproject.settings=dev/sonar-project.properties | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
/app/etc/local.xml | ||
/media/catalog | ||
/media/captcha | ||
/media/css | ||
/media/css_secure | ||
/media/email/logo | ||
/media/favicon | ||
/media/js | ||
/media/sales/store/logo | ||
/media/sales/store/logo_html | ||
/media/wysiwyg | ||
/dev/tests/functional/generated | ||
/dev/tests/functional/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ | ||
tasks: | ||
- init: echo 'init script' # runs during prebuild | ||
command: echo 'start script' | ||
- name: Install OpenMage | ||
init: | | ||
BASE_URL="$(echo "$GITPOD_WORKSPACE_URL" | sed s~https://~https://8000-~)" | ||
HOST_PORT=8000 BASE_URL=$BASE_URL bash dev/gitpod/install.sh | ||
command: docker ps | ||
openMode: tab-after | ||
- name: prepare git | ||
init: git config core.fileMode false | ||
|
||
vscode: | ||
extensions: | ||
- bmewburn.vscode-intelephense-client | ||
|
||
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/ | ||
ports: | ||
- port: 8000 | ||
visibility: public | ||
onOpen: open-preview |
Oops, something went wrong.