From 5f2d883186b35fd846fcf2c77fbb660d8d8a5be4 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sat, 15 Jul 2017 17:12:57 +0200 Subject: [PATCH] Travis CI added Added Travis CI builds to run PHPUnit test on every supported PHP version. Also automated PHPCS checks are performed to enforce coding standards. --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..85e8034 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: php +dist: trusty +php: + - '5.5' + - '5.6' + - '7.0' + - '7.1' +before_script: + - composer install --no-interaction + - vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs +script: + - vendor/bin/phpunit ./test/statifyblacklist-test.php + - vendor/bin/phpcs statify-blacklist.php --standard=ruleset.xml + - vendor/bin/phpcs ./inc/ --standard=ruleset.xml --extensions=php