.travis.yml
sudo: false
language: php
env:
global:
- APPLICATION_ENV=test
matrix:
fast_finish: true
include:
- php: 5.5
- php: 5.6
env:
- EXECUTE_TEST_COVERALLS=true
- EXECUTE_CS_CHECK=true
- php: 7
- php: nightly
- php: hhvm
before_install:
- mkdir -p build/logs
- composer self-update
install:
- travis_retry composer install --no-interaction --ignore-platform-reqs
script:
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then vendor/bin/phpunit ; fi
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then vendor/bin/phpunit --coverage-clover=./build/logs/clover.xml; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./bin/php-cs-fix.sh src true ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./bin/php-cs-fix.sh tests true ; fi
after_script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi