language: php

sudo: false

php:
  - 7.1

env:
  global:
    - setup=basic

# Optimize the build since we are `composer installing` for each supported
# Laravel versions (see composer.json, under scripts sections).
cache:
  directories:
    - $HOME/.composer/cache

before_script:
  - composer config discard-changes true
  - if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi
  - if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi
  - if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
  # Installing `Laravel-YouTrack-SDK` package dependencies for each
  # supported Laravel versions (see composer.json, under scripts section).
  - composer test-install

script:
  - composer test

language: php

sudo: false

php:
  - 7.1
  - 7.2

env:
  global:
    - setup=basic

# Optimize the build since we are `composer installing` for each supported
# Laravel versions (see composer.json, under scripts sections).
cache:
  directories:
    - $HOME/.composer/cache

before_script:
  - composer config discard-changes true
  - if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi
  - if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi
  - if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
  # Installing `Laravel-YouTrack-SDK` package dependencies for each
  # supported Laravel versions (see composer.json, under scripts section).
  - composer test-install

script:
  - composer test

Add PHP7.2 in Travis tests
Add PHP7.2 in Travis tests
