Skip to content
Snippets Groups Projects

WIP: Add typehint checking

Closed Erick Hitter requested to merge phpcs-typehint into master
1 file
+ 15
3
Compare changes
  • Side-by-side
  • Inline
+ 23
1
@@ -22,13 +22,33 @@ before_script:
@@ -22,13 +22,33 @@ before_script:
# Install PHPCS and WPCS
# Install PHPCS and WPCS
- composer global require automattic/vipwpcs
- composer global require automattic/vipwpcs
- phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs
- composer global require slevomat/coding-standard
 
- phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs,$HOME/.composer/vendor/slevomat/coding-standard
 
 
PHPunit:PHP5.3:MySQL:
 
image: containers.ethitter.com:443/docker/images/php:5.3
 
services:
 
- mysql:5.6
 
script:
 
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
 
- phpcs -n
 
- phpunit
 
 
PHPunit:PHP5.6:MySQL:
 
image: containers.ethitter.com:443/docker/images/php:5.6
 
services:
 
- mysql:5.6
 
script:
 
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
 
- phpcs -n
 
- phpunit
PHPunit:PHP7.0:MySQL:
PHPunit:PHP7.0:MySQL:
image: containers.ethitter.com:443/docker/images/php:7.0
image: containers.ethitter.com:443/docker/images/php:7.0
services:
services:
- mysql:5.6
- mysql:5.6
script:
script:
 
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpcs -n
- phpcs -n
- phpunit
- phpunit
@@ -37,6 +57,7 @@ PHPunit:PHP7.1:MySQL:
@@ -37,6 +57,7 @@ PHPunit:PHP7.1:MySQL:
services:
services:
- mysql:5.6
- mysql:5.6
script:
script:
 
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpcs -n
- phpcs -n
- phpunit
- phpunit
@@ -45,5 +66,6 @@ PHPunit:PHP7.2:MySQL:
@@ -45,5 +66,6 @@ PHPunit:PHP7.2:MySQL:
services:
services:
- mysql:5.6
- mysql:5.6
script:
script:
 
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpcs -n
- phpcs -n
- phpunit
- phpunit
Loading