Skip to:
Content

BuddyPress.org

Changeset 12277 for trunk/composer.json


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.

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.