Skip to content

Instantly share code, notes, and snippets.

@dmitry-udod
Created July 13, 2018 13:50
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 dmitry-udod/87ec18aa8459b56162139da74e5f8489 to your computer and use it in GitHub Desktop.
Save dmitry-udod/87ec18aa8459b56162139da74e5f8489 to your computer and use it in GitHub Desktop.
TravisCI for Laravel 5.6 (PostgreSQL, PHPUnit)
os:
- linux
language: php
php:
- '7.1'
services:
- postgresql
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- composer self-update
- composer install --no-interaction
- cp .env.travis .env
- cp .env.travis .env.testing
- php artisan migrate --force
- npm install
- npm run test
script:
- vendor/bin/phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment