sudo: false
dist: trusty
language: php

services:
  - mysql
  - postgresql

php:
  - 5.6
  - 7
  - 7.1

env:
  matrix:
    - DB=mysql
    - DB=sqlite 
    - DB=pgsql 

before_install:
  # copy sprinkles.json
  - cp app/sprinkles.example.json app/sprinkles.json
  # set up db
  - bash build/before_install.sh $DB

before_script:
  # install deps and UF
  - composer install
  - php bakery migrate

script:
  # run unit tests
  - composer test

after_failure:
  - cat app/log/userfrosting.log

sudo: false
dist: trusty
language: php

services:
  - mysql
  - postgresql

php:
  - 5.6
  - 7
  - 7.1
  - 7.2

env:
  matrix:
    - DB=mysql
    - DB=sqlite
    - DB=pgsql

before_install:
  # copy sprinkles.json
  - cp app/sprinkles.example.json app/sprinkles.json
  # set up db
  - bash build/before_install.sh $DB

before_script:
  # install deps and UF
  - composer install
  - php bakery migrate

script:
  # run unit tests
  - composer test

after_failure:
  - cat app/log/userfrosting.log

Add PHP 7.2 to Travis tasks
Add PHP 7.2 to Travis tasks
