language: php
sudo: false

cache:
  directories:
    - $HOME/.composer/cache/files

git:
  depth: 1

services:
  - mysql

php:
  - 7.1
  - 7.2
  - nightly

matrix:
  fast_finish: true
  allow_failures:
    - php: nightly

before_install:
  - cp .env.travis .env
  - cp .env.travis .env.test

install:
  - composer install
  - make generate-jwt-keys

before_script:
  - php --version
  - php bin/console --version
  - vendor/bin/phpunit --version
  - vendor/bin/requirements-checker

script:
  - make run-tests

after_success:
  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then php vendor/bin/coveralls -v; fi

after_failure:
  - cat var/logs/*.log

language: php
sudo: false

cache:
  directories:
    - $HOME/.composer/cache/files

git:
  depth: 1

services:
  - mysql

php:
  - 7.1
  - 7.2
  - nightly

matrix:
  fast_finish: true
  allow_failures:
    - php: 7.2
    - php: nightly

before_install:
  - cp .env.travis .env
  - cp .env.travis .env.test

install:
  - composer install
  - make generate-jwt-keys

before_script:
  - php --version
  - php bin/console --version
  - vendor/bin/phpunit --version
  - vendor/bin/requirements-checker

script:
  - make run-tests

after_success:
  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then php vendor/bin/coveralls -v; fi

after_failure:
  - cat var/logs/*.log

Allow failures on PHP 7.2
tests: Allow failures on PHP 7.2
