Skip to content
Snippets Groups Projects
Commit 08fb8839 authored by Tibo's avatar Tibo
Browse files

Gitlab-ci

parent d42f4c18
No related branches found
No related tags found
No related merge requests found
# https://hub.docker.com/_/php/
image: php:7.2
before_script:
# Install git, the php image doesn't have installed
- apt-get update -yqq
- apt-get install git -yqq
# Install composer
- curl -sS https://getcomposer.org/installer | php
# Install PHP-ZIP extension (used by composer)
- apt-get install -yqq libzip-dev
- docker-php-ext-install zip
# Install xdebug extension (used for phpunit code coverage)
- pecl install xdebug
- docker-php-ext-enable xdebug
# Install all project dependencies
- php composer.phar install
# setup Laravel
- cp web/env.test web/.env
- touch web/storage/app/db.sqlite
- cd web && php artisan migrate
# Test with PHP7
test:php72:
image: php:7.2
script:
- cd web && vendor/bin/phpunit --coverage-text
APP_NAME=Monitor
APP_ENV=local
APP_KEY=base64:p2oYGittQdNtGASsDNp3LGx9YdrwIId4jKncdcEtUdo=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost:8000
DB_CONNECTION=sqlite
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=monitor@web-d.be
MAIL_FROM_NAME=Monitor
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
DB_MONGO_HOST=mongo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment