From bccdf5055037b5ddd63585cf4bd76eb15195e9eb Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Tue, 22 Nov 2016 18:01:47 -0600 Subject: [PATCH] Updating build to modern Travis CI specs; build on PHP 7+ --- .travis.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 91e16b4..610af72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,15 +4,25 @@ php: - 5.4 - 5.5 - 5.6 + - 7.0 + - 7.1 - hhvm +sudo: false + +before_install: + - travis_retry composer self-update + +install: + - travis_retry composer install --no-interaction --prefer-dist + before_script: - - composer self-update - - composer install --no-interaction --prefer-source --dev + - mkdir -p build/logs script: - - ./vendor/bin/parallel-lint --exclude vendor . bin/shootproof-cli - - ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml + - ./vendor/bin/parallel-lint src tests bin bin/shootproof-cli + - ./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml - ./vendor/bin/phpcs src bin bin/shootproof-cli --standard=psr2 -sp -after_script: php vendor/bin/coveralls +after_script: + - php vendor/bin/coveralls