Public | Automated Build

Last pushed: 2 years ago
Short Description
PHP Docker Image for CI
Full Description

php56-ci

I need an image to run CI on gitlab

sample .gitlab-ci.yml file

image: thiagooak/php56-ci

before_script:
  # instructions from https://getcomposer.org/download/
  - php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
  - php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === '41e71d86b40f28e771d4bb662b997f79625196afcca95a5abf44391188c695c6c1456e16154c75a211d238cc3bc5cb47') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  - php composer-setup.php
  - php -r "unlink('composer-setup.php');"
  - ./composer.phar install

phpcs:
  script:
    - vendor/bin/phpcs --standard=PSR2 ./src ./tests

phpunit:
  script:
    - vendor/bin/phpunit
Docker Pull Command
Owner
thiagooak
Source Repository