sudo: false
language: php

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

matrix:
  fast_finish: true
  include:
  - php: 5.5
    env:
    - EXECUTE_CS_CHECK=true
  - php: 5.6
    env:
    - EXECUTE_DEPLOYMENT=true
  - php: 7
  - php: hhvm
  allow_failures:
  - php: hhvm

before_install:
- openssl aes-256-cbc -K $encrypted_bdfd67bd0d47_key -iv $encrypted_bdfd67bd0d47_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini ||
  return 0 ; fi
- composer self-update

install:
- travis_retry composer install --no-interaction
- composer info -i

script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer test-coverage ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then composer test ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer cs ; fi

after_script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer coveralls ; fi

after_success:
- if [[ $EXECUTE_DEPLOYMENT == 'true' ]]; then ./bin/deploy.sh ; fi

notifications:
  email: true

sudo: false
language: php

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

matrix:
  fast_finish: true
  include:
  - php: 5.5
    env:
    - EXECUTE_CS_CHECK=true
  - php: 5.6
    env:
    - EXECUTE_DEPLOYMENT=true
  - php: 7
  - php: hhvm
  allow_failures:
  - php: hhvm

before_install:
- openssl aes-256-cbc -K $encrypted_bdfd67bd0d47_key -iv $encrypted_bdfd67bd0d47_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini ||
  return 0 ; fi
- composer self-update

install:
- travis_retry composer install --no-interaction
- composer info -i

script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer test-coverage ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then composer test ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer cs ; fi

after_script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer coveralls ; fi

after_success:
- if [[ $EXECUTE_DEPLOYMENT == 'true' ]]; then composer update --no-dev ; fi
- if [[ $EXECUTE_DEPLOYMENT == 'true' ]]; then ./bin/deploy.sh ; fi

notifications:
  email: true

Remove dev dependencies before building phar
Remove dev dependencies before building phar
