language: php

php:
  - 7.1
  - 7.1snapshot
  - 7.2
  - 7.2snapshot

branches:
  only:
    - master
    - development
    - /^feature\/.+$/
    - /^issue\/.+$/

services:
  - redis-server

before_script:
  - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git checkout "$TRAVIS_BRANCH"; else git checkout -b "$TRAVIS_PULL_REQUEST_BRANCH"; fi
  - git reset --hard "$TRAVIS_COMMIT"
  - composer self-update
  - mkdir -p vendor/bin
  - mkdir -p build/logs
  - cp config/app.sample.php config/app.php
  - cp config/servers.sample.php config/servers.php
  - composer install -o --prefer-dist --no-interaction

script:
 - php vendor/bin/phpunit.phar -c build/

after_success:
 - travis_retry php vendor/bin/coveralls.phar -v --exclude-no-stmt

language: php

php:
  - 7.1
  - 7.1snapshot
  - 7.2
  - 7.2snapshot

git:
  depth: 5

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

branches:
  only:
    - master
    - development
    - /^feature\/.+$/
    - /^issue\/.+$/

services:
  - redis-server

before_script:
  - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git checkout "$TRAVIS_BRANCH"; else git checkout -b "$TRAVIS_PULL_REQUEST_BRANCH"; fi
  - git reset --hard "$TRAVIS_COMMIT"
  - composer self-update
  - mkdir -p vendor/bin
  - mkdir -p build/logs
  - cp config/app.sample.php config/app.php
  - cp config/servers.sample.php config/servers.php
  - composer install -o --prefer-dist --no-interaction

script:
 - php vendor/bin/phpunit.phar -c build/

after_success:
 - travis_retry php vendor/bin/coveralls.phar -v --exclude-no-stmt

Update CI settings for faster build
Update CI settings for faster build
