Skip to content

Instantly share code, notes, and snippets.

@soulflyman
Forked from iolson/.gitlab-ci.yml
Created April 26, 2016 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulflyman/560bf00eee0fdc22d77251417815627e to your computer and use it in GitHub Desktop.
Save soulflyman/560bf00eee0fdc22d77251417815627e to your computer and use it in GitHub Desktop.
# Before Script
before_script:
- composer self-update
- composer install --prefer-dist > /dev/null
- cp .env.example .env
- php artisan key:generate
- php artisan migrate:refresh
# Services
services:
- mysql:latest
# Variables
variables:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_DATABASE: homestead
# PHP 5.5
php:5.5:
image: bobey/docker-gitlab-ci-runner-php5.5
script:
- echo "Running PHPUnit Tests"
- php vendor/bin/phpunit --colors --debug --coverage-text
# PHP 5.6
php:5.6:
image: bobey/docker-gitlab-ci-runner-php5.6
script:
- echo "Running PHPUnit Tests"
- php vendor/bin/phpunit --colors --debug --coverage-text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment