language: php

php:
 - 7.1
 - 7.2
 - 7.3
 - nightly

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

before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source --dev

script:
 - composer test-ci
 - vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
 - vendor/bin/phpcs --standard=psr2 src
 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then vendor/bin/phpcs --standard=phpcs.xml src --ignore=tests/Sniffs; fi
 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then vendor/bin/phpcs --standard=codor.xml src -spn; fi

after_success:
 - bash <(curl -s https://codecov.io/bash)

language: php

php:
 - 7.1
 - 7.2
 - 7.3
 - nightly

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

install:
  - travis_retry composer install --no-interaction --prefer-source --dev

script:
 - composer test-ci
 - vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
 - vendor/bin/phpcs --standard=psr2 src
 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then vendor/bin/phpcs --standard=phpcs.xml src --ignore=tests/Sniffs; fi
 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then vendor/bin/phpcs --standard=codor.xml src -spn; fi

after_success:
 - bash <(curl -s https://codecov.io/bash)

Install dependencies in install section
Fix: Install dependencies in install section
