language: php

php:
  - 5.5
  - 5.6
  - '7'

before_script:
  - cp .env.travis .env
  - cp travis.phpunit.xml phpunit.xml
  - mkdir /tmp/timegrid
  - mysql -e 'create database test_timegrid;'
  - composer self-update
  - composer install --no-interaction
  - php artisan key:generate
  - php artisan migrate
  - php artisan db:seed
  - php artisan geoip:update
  - php artisan serve &

script:
  - vendor/bin/phpunit
language: php

php:
  - 5.5
  - 5.6
  - '7'

before_script:
  - cp .env.travis .env
  - cp travis.phpunit.xml phpunit.xml
  - mkdir /tmp/timegrid
  - mysql -e 'create database test_timegrid;'
  - composer self-update
  - composer install --no-interaction
  - php artisan key:generate
  - php artisan migrate
  - php artisan db:seed
  - php artisan geoip:update
  - php artisan serve &

script:
  - vendor/bin/phpunit

after_script:
  - vendor/bin/test-reporter
Add after_script to run CodeClimate report
Add after_script to run CodeClimate report
