Changeset 12278
- Timestamp:
- 11/07/2018 03:27:42 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.travis.yml
r12264 r12278 36 36 - php: 7.2 37 37 env: WP_VERSION=master BP_TRAVISCI=travis:grunt 38 - php: 7.2 39 env: WP_VERSION=master BP_TRAVISCI=travis:phpcompat 38 40 - php: 5.3 39 41 env: WP_VERSION=master BP_TRAVISCI=travis:phpunit … … 81 83 # prepare for running the tests 82 84 - cd $plugin_dir 85 - composer install 83 86 84 87 # setup NodeJS version using NVM -
trunk/Gruntfile.js
r12261 r12278 242 242 } 243 243 }, 244 phplint: {245 good: ['**/*.php'].concat( BP_EXCLUDED_MISC )246 },247 244 postcss: { 248 245 options: { … … 297 294 cwd: BUILD_DIR, 298 295 stdout: false 296 }, 297 phpcompat: { 298 command: './vendor/bin/phpcs -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.3- src tests', 299 stdout: true 299 300 } 300 301 }, … … 333 334 */ 334 335 grunt.registerTask( 'src', ['checkDependencies', 'jsvalidate:src', 'jshint', 'stylelint', 'sass', 'postcss', 'rtlcss'] ); 335 grunt.registerTask( 'commit', ['src', 'checktextdomain', 'imagemin',' phplint'] );336 grunt.registerTask( 'commit', ['src', 'checktextdomain', 'imagemin','exec:phpcompat'] ); 336 337 grunt.registerTask( 'build', ['commit', 'clean:all', 'copy:files', 'uglify', 'jsvalidate:build', 'cssmin', 'makepot', 'exec:bpdefault', 'exec:cli'] ); 337 338 grunt.registerTask( 'release', ['build'] ); … … 352 353 // Travis CI Tasks. 353 354 grunt.registerTask( 'travis:grunt', 'Runs Grunt build task.', [ 'build' ]); 354 grunt.registerTask( 'travis:phpunit', ['jsvalidate:src', 'jshint', 'checktextdomain', ' phplint', 'test'] );355 grunt.registerTask( 'travis:phpunit', ['jsvalidate:src', 'jshint', 'checktextdomain', 'test'] ); 355 356 grunt.registerTask( 'travis:codecoverage', 'Runs PHPUnit tasks with code-coverage generation.', ['phpunit:codecoverage'] ); 357 grunt.registerTask( 'travis:phpcompat', 'Runs PHP compatibility scan.', ['exec:phpcompat'] ); 356 358 357 359 // Patch task. -
trunk/composer.json
r12277 r12278 32 32 }, 33 33 "require-dev": { 34 "phpcompatibility/php-compatibility": "*" 35 }, 36 "scripts": { 37 "post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility", 38 "post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility" 34 "phpcompatibility/phpcompatibility-wp": "*", 35 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3" 39 36 } 40 37 } -
trunk/composer.lock
r12277 r12278 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " 605339051246b9ef6b7162f2883c0034",7 "content-hash": "90ce29c17b18d6e1939f860a2a0dd560", 8 8 "packages": [ 9 9 { … … 130 130 "packages-dev": [ 131 131 { 132 "name": "dealerdirect/phpcodesniffer-composer-installer", 133 "version": "v0.4.4", 134 "source": { 135 "type": "git", 136 "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", 137 "reference": "2e41850d5f7797cbb1af7b030d245b3b24e63a08" 138 }, 139 "dist": { 140 "type": "zip", 141 "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/2e41850d5f7797cbb1af7b030d245b3b24e63a08", 142 "reference": "2e41850d5f7797cbb1af7b030d245b3b24e63a08", 143 "shasum": "" 144 }, 145 "require": { 146 "composer-plugin-api": "^1.0", 147 "php": "^5.3|^7", 148 "squizlabs/php_codesniffer": "*" 149 }, 150 "require-dev": { 151 "composer/composer": "*", 152 "wimg/php-compatibility": "^8.0" 153 }, 154 "suggest": { 155 "dealerdirect/qa-tools": "All the PHP QA tools you'll need" 156 }, 157 "type": "composer-plugin", 158 "extra": { 159 "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" 160 }, 161 "autoload": { 162 "psr-4": { 163 "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" 164 } 165 }, 166 "notification-url": "https://packagist.org/downloads/", 167 "license": [ 168 "MIT" 169 ], 170 "authors": [ 171 { 172 "name": "Franck Nijhof", 173 "email": "f.nijhof@dealerdirect.nl", 174 "homepage": "http://workingatdealerdirect.eu", 175 "role": "Developer" 176 } 177 ], 178 "description": "PHP_CodeSniffer Standards Composer Installer Plugin", 179 "homepage": "http://workingatdealerdirect.eu", 180 "keywords": [ 181 "PHPCodeSniffer", 182 "PHP_CodeSniffer", 183 "code quality", 184 "codesniffer", 185 "composer", 186 "installer", 187 "phpcs", 188 "plugin", 189 "qa", 190 "quality", 191 "standard", 192 "standards", 193 "style guide", 194 "stylecheck", 195 "tests" 196 ], 197 "time": "2017-12-06T16:27:17+00:00" 198 }, 199 { 132 200 "name": "phpcompatibility/php-compatibility", 133 201 "version": "9.0.0", … … 186 254 ], 187 255 "time": "2018-10-07T17:38:02+00:00" 256 }, 257 { 258 "name": "phpcompatibility/phpcompatibility-paragonie", 259 "version": "1.0.0", 260 "source": { 261 "type": "git", 262 "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", 263 "reference": "67d89dcef47f351144d24b247aa968f2269162f7" 264 }, 265 "dist": { 266 "type": "zip", 267 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/67d89dcef47f351144d24b247aa968f2269162f7", 268 "reference": "67d89dcef47f351144d24b247aa968f2269162f7", 269 "shasum": "" 270 }, 271 "require": { 272 "phpcompatibility/php-compatibility": "^9.0" 273 }, 274 "require-dev": { 275 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4" 276 }, 277 "suggest": { 278 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", 279 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 280 }, 281 "type": "phpcodesniffer-standard", 282 "notification-url": "https://packagist.org/downloads/", 283 "license": [ 284 "LGPL-3.0-or-later" 285 ], 286 "authors": [ 287 { 288 "name": "Wim Godden", 289 "role": "lead" 290 }, 291 { 292 "name": "Juliette Reinders Folmer", 293 "role": "lead" 294 } 295 ], 296 "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.", 297 "homepage": "http://phpcompatibility.com/", 298 "keywords": [ 299 "compatibility", 300 "paragonie", 301 "phpcs", 302 "polyfill", 303 "standards" 304 ], 305 "time": "2018-10-07T17:59:30+00:00" 306 }, 307 { 308 "name": "phpcompatibility/phpcompatibility-wp", 309 "version": "2.0.0", 310 "source": { 311 "type": "git", 312 "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", 313 "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd" 314 }, 315 "dist": { 316 "type": "zip", 317 "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/cb303f0067cd5b366a41d4fb0e254fb40ff02efd", 318 "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd", 319 "shasum": "" 320 }, 321 "require": { 322 "phpcompatibility/php-compatibility": "^9.0", 323 "phpcompatibility/phpcompatibility-paragonie": "^1.0" 324 }, 325 "require-dev": { 326 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3" 327 }, 328 "suggest": { 329 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", 330 "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." 331 }, 332 "type": "phpcodesniffer-standard", 333 "notification-url": "https://packagist.org/downloads/", 334 "license": [ 335 "LGPL-3.0-or-later" 336 ], 337 "authors": [ 338 { 339 "name": "Wim Godden", 340 "role": "lead" 341 }, 342 { 343 "name": "Juliette Reinders Folmer", 344 "role": "lead" 345 } 346 ], 347 "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.", 348 "homepage": "http://phpcompatibility.com/", 349 "keywords": [ 350 "compatibility", 351 "phpcs", 352 "standards", 353 "wordpress" 354 ], 355 "time": "2018-10-07T18:31:37+00:00" 188 356 }, 189 357 { -
trunk/npm-shrinkwrap.json
r12277 r12278 645 645 "union-value": "^1.0.0", 646 646 "unset-value": "^1.0.0" 647 }648 },649 "cache-swap": {650 "version": "0.3.0",651 "resolved": "https://registry.npmjs.org/cache-swap/-/cache-swap-0.3.0.tgz",652 "integrity": "sha1-HFQaoQilAQb2ML3Zj+HeyLoTP1E=",653 "dev": true,654 "requires": {655 "graceful-fs": "^4.1.2",656 "mkdirp": "^0.5.1",657 "object-assign": "^4.0.1",658 "rimraf": "^2.4.0"659 647 } 660 648 }, … … 3488 3476 "underscore.string": "~3.3.4", 3489 3477 "xmlrpc": "^1.3.1" 3490 }3491 },3492 "grunt-phplint": {3493 "version": "0.1.0",3494 "resolved": "https://registry.npmjs.org/grunt-phplint/-/grunt-phplint-0.1.0.tgz",3495 "integrity": "sha1-bb4uauxTqiKc+sCtmnyZ4kGEhI0=",3496 "dev": true,3497 "requires": {3498 "cache-swap": "~0.3.0",3499 "grunt": "~0.4.1"3500 },3501 "dependencies": {3502 "argparse": {3503 "version": "0.1.16",3504 "resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz",3505 "integrity": "sha1-z9AeD7uj1srtBJ+9dY1A9lGW9Xw=",3506 "dev": true,3507 "requires": {3508 "underscore": "~1.7.0",3509 "underscore.string": "~2.4.0"3510 },3511 "dependencies": {3512 "underscore.string": {3513 "version": "2.4.0",3514 "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz",3515 "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=",3516 "dev": true3517 }3518 }3519 },3520 "async": {3521 "version": "0.1.22",3522 "resolved": "https://registry.npmjs.org/async/-/async-0.1.22.tgz",3523 "integrity": "sha1-D8GqoIig4+8Ovi2IMbqw3PiEUGE=",3524 "dev": true3525 },3526 "coffee-script": {3527 "version": "1.3.3",3528 "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.3.3.tgz",3529 "integrity": "sha1-FQ1rTLUiiUNp7+1qIQHCC8f0pPQ=",3530 "dev": true3531 },3532 "colors": {3533 "version": "0.6.2",3534 "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz",3535 "integrity": "sha1-JCP+ZnisDF2uiFLl0OW+CMmXq8w=",3536 "dev": true3537 },3538 "dateformat": {3539 "version": "1.0.2-1.2.3",3540 "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.2-1.2.3.tgz",3541 "integrity": "sha1-sCIMAt6YYXQztyhRz0fePfLNvuk=",3542 "dev": true3543 },3544 "esprima": {3545 "version": "1.0.4",3546 "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz",3547 "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=",3548 "dev": true3549 },3550 "findup-sync": {3551 "version": "0.1.3",3552 "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.1.3.tgz",3553 "integrity": "sha1-fz56l7gjksZTvwZYm9hRkOk8NoM=",3554 "dev": true,3555 "requires": {3556 "glob": "~3.2.9",3557 "lodash": "~2.4.1"3558 },3559 "dependencies": {3560 "glob": {3561 "version": "3.2.11",3562 "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz",3563 "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=",3564 "dev": true,3565 "requires": {3566 "inherits": "2",3567 "minimatch": "0.3"3568 }3569 },3570 "lodash": {3571 "version": "2.4.2",3572 "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",3573 "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",3574 "dev": true3575 },3576 "minimatch": {3577 "version": "0.3.0",3578 "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz",3579 "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=",3580 "dev": true,3581 "requires": {3582 "lru-cache": "2",3583 "sigmund": "~1.0.0"3584 }3585 }3586 }3587 },3588 "glob": {3589 "version": "3.1.21",3590 "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz",3591 "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=",3592 "dev": true,3593 "requires": {3594 "graceful-fs": "~1.2.0",3595 "inherits": "1",3596 "minimatch": "~0.2.11"3597 },3598 "dependencies": {3599 "inherits": {3600 "version": "1.0.2",3601 "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz",3602 "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=",3603 "dev": true3604 }3605 }3606 },3607 "graceful-fs": {3608 "version": "1.2.3",3609 "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz",3610 "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=",3611 "dev": true3612 },3613 "grunt": {3614 "version": "0.4.5",3615 "resolved": "https://registry.npmjs.org/grunt/-/grunt-0.4.5.tgz",3616 "integrity": "sha1-VpN81RlDJK3/bSB2MYMqnWuk5/A=",3617 "dev": true,3618 "requires": {3619 "async": "~0.1.22",3620 "coffee-script": "~1.3.3",3621 "colors": "~0.6.2",3622 "dateformat": "1.0.2-1.2.3",3623 "eventemitter2": "~0.4.13",3624 "exit": "~0.1.1",3625 "findup-sync": "~0.1.2",3626 "getobject": "~0.1.0",3627 "glob": "~3.1.21",3628 "grunt-legacy-log": "~0.1.0",3629 "grunt-legacy-util": "~0.2.0",3630 "hooker": "~0.2.3",3631 "iconv-lite": "~0.2.11",3632 "js-yaml": "~2.0.5",3633 "lodash": "~0.9.2",3634 "minimatch": "~0.2.12",3635 "nopt": "~1.0.10",3636 "rimraf": "~2.2.8",3637 "underscore.string": "~2.2.1",3638 "which": "~1.0.5"3639 }3640 },3641 "grunt-legacy-log": {3642 "version": "0.1.3",3643 "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-0.1.3.tgz",3644 "integrity": "sha1-7ClCboAwIa9ZAp+H0vnNczWgVTE=",3645 "dev": true,3646 "requires": {3647 "colors": "~0.6.2",3648 "grunt-legacy-log-utils": "~0.1.1",3649 "hooker": "~0.2.3",3650 "lodash": "~2.4.1",3651 "underscore.string": "~2.3.3"3652 },3653 "dependencies": {3654 "lodash": {3655 "version": "2.4.2",3656 "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",3657 "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",3658 "dev": true3659 },3660 "underscore.string": {3661 "version": "2.3.3",3662 "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz",3663 "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=",3664 "dev": true3665 }3666 }3667 },3668 "grunt-legacy-log-utils": {3669 "version": "0.1.1",3670 "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-0.1.1.tgz",3671 "integrity": "sha1-wHBrndkGThFvNvI/5OawSGcsD34=",3672 "dev": true,3673 "requires": {3674 "colors": "~0.6.2",3675 "lodash": "~2.4.1",3676 "underscore.string": "~2.3.3"3677 },3678 "dependencies": {3679 "lodash": {3680 "version": "2.4.2",3681 "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",3682 "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",3683 "dev": true3684 },3685 "underscore.string": {3686 "version": "2.3.3",3687 "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz",3688 "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=",3689 "dev": true3690 }3691 }3692 },3693 "grunt-legacy-util": {3694 "version": "0.2.0",3695 "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-0.2.0.tgz",3696 "integrity": "sha1-kzJIhNv343qf98Am3/RR2UqeVUs=",3697 "dev": true,3698 "requires": {3699 "async": "~0.1.22",3700 "exit": "~0.1.1",3701 "getobject": "~0.1.0",3702 "hooker": "~0.2.3",3703 "lodash": "~0.9.2",3704 "underscore.string": "~2.2.1",3705 "which": "~1.0.5"3706 }3707 },3708 "iconv-lite": {3709 "version": "0.2.11",3710 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz",3711 "integrity": "sha1-HOYKOleGSiktEyH/RgnKS7llrcg=",3712 "dev": true3713 },3714 "js-yaml": {3715 "version": "2.0.5",3716 "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-2.0.5.tgz",3717 "integrity": "sha1-olrmUJmZ6X3yeMZxnaEb0Gh3Q6g=",3718 "dev": true,3719 "requires": {3720 "argparse": "~ 0.1.11",3721 "esprima": "~ 1.0.2"3722 }3723 },3724 "lodash": {3725 "version": "0.9.2",3726 "resolved": "https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz",3727 "integrity": "sha1-jzSZxSRdNG1oLlsNO0B2fgnxqSw=",3728 "dev": true3729 },3730 "lru-cache": {3731 "version": "2.7.3",3732 "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz",3733 "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=",3734 "dev": true3735 },3736 "minimatch": {3737 "version": "0.2.14",3738 "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz",3739 "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=",3740 "dev": true,3741 "requires": {3742 "lru-cache": "2",3743 "sigmund": "~1.0.0"3744 }3745 },3746 "nopt": {3747 "version": "1.0.10",3748 "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz",3749 "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=",3750 "dev": true,3751 "requires": {3752 "abbrev": "1"3753 }3754 },3755 "rimraf": {3756 "version": "2.2.8",3757 "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz",3758 "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=",3759 "dev": true3760 },3761 "underscore": {3762 "version": "1.7.0",3763 "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz",3764 "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=",3765 "dev": true3766 },3767 "underscore.string": {3768 "version": "2.2.1",3769 "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.2.1.tgz",3770 "integrity": "sha1-18D6KvXVoaZ/QlPa7pgTLnM/Dxk=",3771 "dev": true3772 },3773 "which": {3774 "version": "1.0.9",3775 "resolved": "https://registry.npmjs.org/which/-/which-1.0.9.tgz",3776 "integrity": "sha1-RgwdoPgQED0DIam2M6+eV15kSG8=",3777 "dev": true3778 }3779 3478 } 3780 3479 }, … … 7035 6734 "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", 7036 6735 "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=", 7037 "dev": true7038 },7039 "sigmund": {7040 "version": "1.0.1",7041 "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz",7042 "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=",7043 6736 "dev": true 7044 6737 }, -
trunk/package.json
r12277 r12278 22 22 "grunt-legacy-util": "~1.1.1", 23 23 "grunt-patch-wordpress": "~1.0.0", 24 "grunt-phplint": "~0.1.0",25 24 "grunt-postcss": "~0.9.0", 26 25 "grunt-rtlcss": "~2.0.1",
Note: See TracChangeset
for help on using the changeset viewer.