Skip to content
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

Open
abcdmitry opened this issue Nov 11, 2015 · 3 comments
Open

Add laravel example #35

abcdmitry opened this issue Nov 11, 2015 · 3 comments

Comments

@abcdmitry
Copy link
Member

No description provided.

@mariomka
Copy link

mariomka commented Apr 7, 2016

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

@abcdmitry
Copy link
Member Author

Thank you for this contribution, I'm going to add it to the repository!

@mariomka
Copy link

mariomka commented Apr 7, 2016

Thank you for the docker images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants