Skip to content

Instantly share code, notes, and snippets.

@jocoonopa
Created May 29, 2019 08:48
Show Gist options
  • Save jocoonopa/381aaa427be5063673bd2ea7f165a1a8 to your computer and use it in GitHub Desktop.
Save jocoonopa/381aaa427be5063673bd2ea7f165a1a8 to your computer and use it in GitHub Desktop.
travis.yml
language: php
php:
- 7.2.11
addons:
mariadb: '10.0'
before_script:
- cp .env.travis .env.testing
- cp .env.travis .env
- mysql -u root -e 'create database homestead_test;'
- composer self-update
- composer install --no-interaction
- composer dump-autoload
- php artisan migrate --env=testing --no-interaction
- sudo chgrp -R www-data storage bootstrap/cache
- sudo chmod -R ug+rwx storage bootstrap/cache
script:
- vendor/bin/phpunit --coverage-text
- php artisan fixer:fix --dry-run -v --using-cache=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment