language: php

php:
  - 7.0
  - 7.1

sudo: false

before_install:
  - if [[ $TRAVIS_PHP_VERSION != 7.1 ]] ; then phpenv config-rm xdebug.ini; fi

install: travis_retry composer install --no-interaction --prefer-dist --no-suggest

script: vendor/bin/phpunit --verbose

language: php

php:
  - 7.0
  - 7.1

services:
  - mysql

addons:
  apt:
    sources:
      - mysql-5.7-trusty
    packages:
      - mysql-server

dist: trusty
sudo: required

env:
  - LARAVEL_VERSION=5.4.*

before_script:
  - composer self-update
  - composer require "laravel/framework:${LARAVEL_VERSION}"
  - mysql -e 'create database antvel_testing;'

before_install:
  - if [[ $TRAVIS_PHP_VERSION != 7.1 ]] ; then phpenv config-rm xdebug.ini; fi

install: travis_retry composer install --no-interaction --prefer-dist --no-suggest

script: vendor/bin/phpunit --verbose

Update trivis file to work with mysql 5.7
Update trivis file to work with mysql 5.7
