duracelltomi / gtm4wp

Google Tag Manager plugin for WordPress
https://gtm4wp.com/
GNU General Public License v3.0
147 stars 96 forks source link

Update TravisCI #106

Closed vincentkoc closed 5 years ago

vincentkoc commented 5 years ago

Continuing from #64 seems like a number of TravisCI updates as well as PHPUnit have broken TravisCI tests across the default Wordpress testing suite. Placing this isssue as a placeholder for upcoming PR

vincentkoc commented 5 years ago

Issue almost resolved, running into issues with PHPCS (Code Sniffer) for testing against Wordpress Standards https://github.com/PHPCompatibility/PHPCompatibilityWP. Once issue is resolved will test branch and PR. All other PR's would need to be rebased for testing.

screenshot 2019-01-24 11 47 08
vincentkoc commented 5 years ago

Finalised build for wordpress-test-dummyplugin which is used to test Travis CI integration. All tests are currently passing (https://travis-ci.org/koconder/wordpress-test-dummyplugin/builds/483746111).

Features over the existing setup, TravisCI configured properly based on PHP version and Wordpress Setup. Utilising PHPCS for testing against a number of Wordpress Standards checks and compatibility. Currently also working with Multisite and additional plugin installs. Can be used to test intergrations like AMP-WP and Woocommerce. Docker support is also built in which can build a testing Virtual Machine with the same plugin, php/wordpress setup and test via Xdebug to rapid development.

I just need to finalise some refactoring work now the tests are passing to move as much of the configuration into the git repo away from the TravisCI configuration and update documentation. Expect a new PR soon.

screenshot 2019-01-24 17 06 41

vincentkoc commented 5 years ago

Finalised and opened PR #107 which solves Travis CI (PHPUnit, PHPCS, Wordpress Version Compatibilities, Code Coverage and Scrutinizer CI)

vincentkoc commented 5 years ago

Resolved with #107