From 5d7000bf8ac4852b6c6fe2a8959e916f00058392 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Tue, 9 Jan 2018 00:19:26 -0600 Subject: [PATCH] Changes to get older and newer tests running --- .travis.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 92dc405..b9edc08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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