Changes to get older and newer tests running

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

View file

@ -1,24 +1,32 @@
language: php
dist: trusty
sudo: required
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
matrix:
include:
- php: 5.3
dist: precise
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: hhvm
env: HHVM=true
install:
- composer install
- if [[ $HHVM == true ]]; then composer require "phpunit/phpunit:5.7"; fi
before_script:
- mkdir -p build/logs
- cd tests
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:
- php ../vendor/bin/coveralls --config ../.coveralls.yml -v
- cd ..
- php vendor/bin/coveralls --config .coveralls.yml -v