From 94ca76c8dc4c526949c4d4d322c4f09e385cef62 Mon Sep 17 00:00:00 2001 From: Jozef Pistej Date: Thu, 21 Oct 2021 14:46:23 +0200 Subject: [PATCH 1/2] more php version --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3baf87f..1d09b4c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,9 @@ matrix: - php: 7.0 - php: 7.1 - php: 7.2 + - php: 7.3 + - php: 7.4 + - php: 8.0 install: # install composer dependencies From 2c9e9e3bcce0ea39803e2278a173026fcadccdcb Mon Sep 17 00:00:00 2001 From: Jozef Pistej Date: Thu, 21 Oct 2021 15:15:03 +0200 Subject: [PATCH 2/2] more php version --- .travis.yml | 50 +++++++++++++++++--------------------------------- 1 file changed, 17 insertions(+), 33 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1d09b4c..f8264ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,40 +1,24 @@ -# -# Test Matrix -# - language: php -env: - global: - - DEFAULT_COMPOSER_FLAGS="--prefer-dist --no-interaction --no-progress --optimize-autoloader" - -# cache vendor dirs -cache: - directories: - - vendor - - $HOME/.composer/cache +php: + - '7.0' + - '7.1' + - '7.2' + - '7.3' + - '7.4' -matrix: - fast_finish: true - include: - - php: 5.3 - dist: precise - - php: 5.4 - - php: 5.6 - - php: 7.0 - - php: 7.1 - - php: 7.2 - - php: 7.3 - - php: 7.4 - - php: 8.0 +before_install: + - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + - chmod +x ./cc-test-reporter install: - # install composer dependencies - - travis_retry composer self-update - - export PATH="$HOME/.composer/vendor/bin:$PATH" - - travis_retry composer install $DEFAULT_COMPOSER_FLAGS + - composer install before_script: - # show some versions and env information - - php --version - - composer --version + - ./cc-test-reporter before-build + +script: + - XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover clover.xml + +after_script: + - ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT \ No newline at end of file