env:
  global:
    - CC_TEST_REPORTER_ID=4995801497690a082a24a4cd9e4f33ce5c636886a5097311c1a8050dd3e43d8e

sudo: false

language: php

php:
  - 7.1
  - 7.2

before_install:
  - composer self-update

install:
  - travis_retry composer update

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
  - echo 'date.timezone = "Europe/London"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

script:
  - vendor/bin/phpcs --standard=PSR2 --warning-severity=0 src
  - vendor/bin/phpstan analyse -l 7 src
  - vendor/bin/phpunit --coverage-clover clover.xml

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

sudo: false

language: php

php:
  - 7.1
  - 7.2

before_install:
  - composer self-update

install:
  - travis_retry composer update

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
  - echo 'date.timezone = "Europe/London"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

script:
  - vendor/bin/phpcs --standard=PSR2 --warning-severity=0 src
  - vendor/bin/phpstan analyse -l 7 src
  - vendor/bin/phpunit --coverage-clover clover.xml

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

Move Code Climate token to Travis web UI
Move Code Climate token to Travis web UI
