Skip to content

Instantly share code, notes, and snippets.

@iolson
Last active November 2, 2016 13:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iolson/791fb1c1d1a8cfb5ffa7 to your computer and use it in GitHub Desktop.
Save iolson/791fb1c1d1a8cfb5ffa7 to your computer and use it in GitHub Desktop.
# Before Tests
before_script:
- bash ci/docker_setup.sh > /dev/null
- composer self-update
- composer install --prefer-dist > /dev/null
- cp .env.gitlab .env
- php artisan key:generate
# Services
services:
- mysql:latest
# Variables
variables:
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_DATABASE: homestead
# PHP 5.6 Apache
php:5.6-apache:
image: php:5.6-apache
script:
- phpunit --colors --debug --coverage-text
# PHP 5.6 FPM
php:5.6-fpm:
image: php:5.6-fpm
script:
- phpunit --colors --debug --coverage-text
# PHP 7.0 Apache
php:7-apache:
image: php:7-apache
script:
- phpunit --colors --debug --coverage-text
# PHP 7.0 FPM
php:7-fpm:
image: php:7-fpm
script:
- phpunit --colors --debug --coverage-text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment