Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis/Build: validate the composer.json file
Validate the composer.json file on each build. Ref: https://getcomposer.org/doc/03-cli.md#validate Also updates the license identifier in the `composer.json` file. Notes: * This check has not been restricted to a specific PHP version as there may be different versions of Composer being run on different Travis PHP images, so validating the file once against each PHP/Composer combi should make sure the file is properly validated. * `--strict` checking is disabled with reason. As of Composer 1.6.0, the SPDX license identifiers v3.0 for GPL/LGPL/AGPL are supported and the old license identifiers are deprecated. So using the "new" license identifier would fail the validation for Composer < 1.6.0, using the old license idenfifier would fail the validation for Composer 1.6.0+. By ignoring warnings, this issue is bypassed. Refs: * https://github.com/composer/composer/releases/tag/1.6.0 * https://spdx.org/news/news/2018/01/license-list-30-released
- Loading branch information