Skip to:
Content

BuddyPress.org

Changeset 12277


Ignore:
Timestamp:
11/07/2018 03:18:56 PM (6 years ago)
Author:
boonebgorges
Message:

Introduce PHP compatibility build/test tools.

The new exec:phpcompat Grunt task uses the phpcompatibility-wp library
to do a WordPress-sensitive check for incompatibilities between our codebase
and the PHP versions that we support.

A new Travis CI job is dedicated to running the phpcompat tests. This
pattern parallels our travis:grunt job.

The new exec:phpcompat tests supercede the phplint task introduced in #7925.

See #7997.

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/composer.json

    r11947 r12277  
    3030        "composer/installers": "~1.0",
    3131        "php": ">=5.3.0"
     32    },
     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"
    3239    }
    3340}
  • trunk/npm-shrinkwrap.json

    r12262 r12277  
    682682        },
    683683        "caniuse-lite": {
    684             "version": "1.0.30000878",
    685             "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000878.tgz",
    686             "integrity": "sha512-/dCGTdLCnjVJno1mFRn7Y6eit3AYaeFzSrMQHCoK0LEQaWl5snuLex1Ky4b8/Qu2ig5NgTX4cJx65hH9546puA==",
     684            "version": "1.0.30000906",
     685            "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000906.tgz",
     686            "integrity": "sha512-ME7JFX6h0402om/nC/8Lw+q23QvPe2ust9U0ntLmkX9F2zaGwq47fZkjlyHKirFBuq1EM+T/LXBcDdW4bvkCTA==",
    687687            "dev": true
    688688        },
     
    30933093                "grunt-cli": {
    30943094                    "version": "1.2.0",
    3095                     "resolved": "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.2.0.tgz",
     3095                    "resolved": "http://registry.npmjs.org/grunt-cli/-/grunt-cli-1.2.0.tgz",
    30963096                    "integrity": "sha1-VisRnrsGndtGSs4oRVAb6Xs1tqg=",
    30973097                    "dev": true,
     
    60056005        "onetime": {
    60066006            "version": "1.1.0",
    6007             "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
     6007            "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
    60086008            "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
    60096009            "dev": true
  • trunk/package.json

    r12262 r12277  
    77    "devDependencies": {
    88        "@wordpress/browserslist-config": "~2.1.4",
    9         "autoprefixer": "~8.5.1",
    10         "grunt": "~1.0.2",
     9        "autoprefixer": "~8.5.2",
     10        "grunt": "~1.0.3",
    1111        "grunt-check-dependencies": "~1.0.0",
    1212        "grunt-checktextdomain": "~1.0.1",
     
    2929        "grunt-wp-i18n": "~1.0.2",
    3030        "matchdep": "~1.0.1",
    31         "postcss-scss": "~1.0.5",
     31        "postcss-scss": "~1.0.6",
    3232        "stylelint": "~7.10.1",
    3333        "stylelint-config-wordpress": "~11.0.0"
Note: See TracChangeset for help on using the changeset viewer.