Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 775 Bytes

contributing.md

File metadata and controls

30 lines (21 loc) · 775 Bytes

AMP Contributing Guide

To clone this repository

$ git clone --recursive [email protected]:Automattic/amp-wp.git

Updating Allowed Tags And Attributes

The file class-amp-allowed-tags-generated.php has the AMP specification's allowed tags and attributes. It's used in sanitization. To update that file:

  1. cd to the root of this plugin
  2. run bash bin/amphtml-update.sh That script is intended for a Linux environment like VVV.

PHPUnit Testing

Run tests:

$ phpunit

Run tests with an HTML coverage report:

$ phpunit --coverage-html /tmp/report

When you push a commit to your PR, Travis CI will run the PHPUnit tests and sniffs against the WordPress Coding Standards.