From Abdelkarim, 8 Months ago, written in YAML.
Embed
  1. image: lorisleiva/laravel-docker:latest
  2.  
  3. cache:
  4.   key: ${CI_COMMIT_REF_SLUG}
  5.   paths:
  6.    - vendor/
  7.  
  8. codestyle:
  9.   stage: test
  10.   cache: {}
  11.   script:
  12.    - phpcs --standard=PSR2 --extensions=php app
  13.  
  14. phpunit:
  15.   stage: test
  16.   script:
  17.    - composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
  18.     - cp .env.example .env
  19.     - php artisan key:generate
  20.     - phpunit --coverage-text --colors=never
  21.