You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
language: php |
|
|
|
php: |
|
- 5.3.3 |
|
- 5.3 |
|
- 5.4 |
|
- 5.5 |
|
- 5.6 |
|
- 7.0 |
|
- hhvm |
|
|
|
matrix: |
|
include: |
|
- php: 7.0 |
|
env: CS_FIXER=run |
|
fast_finish: true |
|
allow_failures: |
|
- php: hhvm |
|
|
|
# faster builds on new travis setup not using sudo |
|
sudo: false |
|
|
|
# cache vendor dirs |
|
cache: |
|
directories: |
|
- vendor |
|
- $HOME/.composer/cache |
|
|
|
install: |
|
- composer self-update |
|
|
|
before_script: |
|
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi; |
|
# disable TLS for composer because openssl is disabled for PHP 5.3.3 on travis |
|
# see: https://blog.travis-ci.com/upcoming_ubuntu_11_10_migration/ |
|
- if [[ $TRAVIS_PHP_VERSION = 5.3.3 ]]; then composer config -g -- disable-tls true; fi; |
|
- if [[ $TRAVIS_PHP_VERSION = 5.3.3 ]]; then composer config -g -- secure-http false; fi; |
|
- composer install --prefer-dist --no-interaction |
|
|
|
script: |
|
- mkdir -p build/logs |
|
- phpunit -v --coverage-clover build/logs/clover.xml |
|
- if [ "$CS_FIXER" = "run" ]; then php vendor/bin/php-cs-fixer fix --verbose --dry-run ; fi; |
|
|
|
after_script: |
|
- php vendor/bin/coveralls -v
|
|
|