Changes to get older and newer tests running

This commit is contained in:
Josh Sherman 2018-01-09 00:19:26 -06:00
parent ac0903530a
commit 5d7000bf8a
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

View file

@ -1,24 +1,32 @@
language: php language: php
dist: trusty
sudo: required
php: matrix:
- 5.3 include:
- 5.4 - php: 5.3
- 5.5 dist: precise
- 5.6 - php: 5.4
- 7.0 - php: 5.5
- 7.1 - php: 5.6
- 7.2 - php: 7.0
- hhvm - php: 7.1
- php: 7.2
- php: hhvm
env: HHVM=true
install: install:
- composer install - composer install
- if [[ $HHVM == true ]]; then composer require "phpunit/phpunit:5.7"; fi
before_script: before_script:
- mkdir -p build/logs - mkdir -p build/logs
- cd tests - cd tests
script: script:
- phpunit --colors --coverage-clover /home/travis/build/joshtronic/php-projecthoneypot/build/logs/clover.xml . - if [[ $HHVM == true ]]; then ../vendor/bin/phpunit --colors --coverage-clover ../build/logs/clover.xml .; fi
- if [[ $HHVM != true ]]; then phpunit --colors --coverage-clover ../build/logs/clover.xml .; fi
after_success: after_success:
- php ../vendor/bin/coveralls --config ../.coveralls.yml -v - cd ..
- php vendor/bin/coveralls --config .coveralls.yml -v