-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add laravel example #35
Comments
Here my .gitlab-ci.yml for a laravel 5.2 project with postgre: # Before script
before_script:
- docker-php-ext-enable mbstring
- docker-php-ext-enable zip
- docker-php-ext-enable pdo_pgsql
- composer self-update
- composer install --prefer-dist --no-ansi --no-interaction
- cp .env.ci .env
- php artisan key:generate
- php artisan migrate:refresh --seed
# Variables
variables:
POSTGRES_DB: gitlabci
POSTGRES_USER: runner
POSTGRES_PASSWORD: secret
COMPOSER_GITHUB: <YOUR GITHUB TOKEN>
# PHP
php:
image: tetraweb/php:7.0
services:
- postgres:latest
script:
- php vendor/bin/phpunit --debug And a ci.env example file APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString
APP_URL=http://localhost
DB_CONNECTION=pgsql
DB_HOST=postgres
DB_DATABASE=gitlabci
DB_USERNAME=runner
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null |
Thank you for this contribution, I'm going to add it to the repository! |
Thank you for the docker images |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: