Skip to content

Instantly share code, notes, and snippets.

@nahuelhds
Last active July 22, 2019 11:05
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 nahuelhds/4a680b31ab669ec96f579fbbc65b2ca5 to your computer and use it in GitHub Desktop.
Save nahuelhds/4a680b31ab669ec96f579fbbc65b2ca5 to your computer and use it in GitHub Desktop.
Laravel 5.8 configuration for Travis CI
APP_NAME=Laravel
APP_ENV=testing
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost/
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=testing
DB_USERNAME=travis
DB_PASSWORD=
BCRYPT_ROUNDS=4
CACHE_DRIVER=array
MAIL_DRIVER=array
QUEUE_CONNECTION=sync
SESSION_DRIVER=array
dist: precise
language: php
php:
- 7.2
addons:
mariadb: 10.4
cache:
directories:
- node_modules
- vendor
before_script:
- cp .env.travis .env
- sudo mysql -e 'CREATE DATABASE testing;'
- composer self-update
- composer install --no-interaction
- php artisan key:generate
- php artisan migrate --no-interaction -vvv
script:
- vendor/bin/phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment