diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5f4ad9b2bce37ef85e0ccba71daf6656aa98ac0..c86fd79bd0a16a215eb60fd58c4115ad7a5d5052 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,58 @@ before_script: - composer global require phpcompatibility/phpcompatibility-wp - phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs,$HOME/.composer/vendor/phpcompatibility/php-compatibility,$HOME/.composer/vendor/phpcompatibility/phpcompatibility-paragonie,$HOME/.composer/vendor/phpcompatibility/phpcompatibility-wp -PHPunit:PHP7.3:MySQL: +PHP5.3: + stage: test + 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 + allow_failure: true + +PHP5.6: + stage: test + 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 + +PHP7.0: + stage: test + image: containers.ethitter.com:443/docker/images/php:7.0 + services: + - mysql:5.6 + script: + - find . -type "f" -iname "*.php" | xargs -L "1" php -l + - phpcs -n + - phpunit + +PHP7.1: + stage: test + image: containers.ethitter.com:443/docker/images/php:7.1 + services: + - mysql:5.6 + script: + - find . -type "f" -iname "*.php" | xargs -L "1" php -l + - phpcs -n + - phpunit + +PHP7.2: + stage: test + image: containers.ethitter.com:443/docker/images/php:7.2 + services: + - mysql:5.6 + script: + - find . -type "f" -iname "*.php" | xargs -L "1" php -l + - phpcs -n + - phpunit + +PHP7.3: stage: test image: containers.ethitter.com:443/docker/images/php:7.3 services: