From c67833167fbcbda55f762e084f550a235f7963a4 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Tue, 22 Jan 2019 23:03:25 +0100 Subject: [PATCH] Drop support for PHP < 7.0 --- .travis.yml | 5 ++--- .travis/after-success.sh | 2 +- .travis/before-script.sh | 2 +- .travis/script.sh | 2 +- README.md | 8 ++++++-- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index c9a298e..d4387aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,11 +3,10 @@ sudo: false language: php php: - - 5.4 - - 5.5 - - 5.6 - 7.0 - 7.1 + - 7.2 + - 7.3 - hhvm matrix: diff --git a/.travis/after-success.sh b/.travis/after-success.sh index b903393..824674d 100755 --- a/.travis/after-success.sh +++ b/.travis/after-success.sh @@ -8,5 +8,5 @@ thisFile="$(readlink -f ${0})"; thisFilePath="$(dirname ${thisFile})"; # if [ "${CODECOVERAGE}" = '1' ]; then - bash <(curl -s https://codecov.io/bash) + bash <(curl -sSL https://codecov.io/bash) fi diff --git a/.travis/before-script.sh b/.travis/before-script.sh index eeac0a8..a4a7410 100755 --- a/.travis/before-script.sh +++ b/.travis/before-script.sh @@ -13,5 +13,5 @@ composer install --no-ansi --no-progress --no-interaction --prefer-source; if [ "${PHPCS}" = '1' ]; then composer require --dev 'squizlabs/php_codesniffer=2.*'; else - composer require --dev 'phpunit/phpunit=4.*'; + composer require --dev 'phpunit/phpunit=^7'; fi diff --git a/.travis/script.sh b/.travis/script.sh index 514035a..15e418b 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -10,7 +10,7 @@ thisFilePath="$(dirname ${thisFile})"; if [ "${PHPCS}" = '1' ]; then vendor/bin/phpcs --standard=PSR2 src tests; elif [ "${CODECOVERAGE}" = '1' ]; then - vendor/bin/phpunit --stderr --configuration phpunit.xml --coverage-clover build/logs/clover.xml; + phpdbg -qrr vendor/bin/phpunit --stderr --configuration phpunit.xml --coverage-clover build/logs/clover.xml; else vendor/bin/phpunit --stderr --configuration phpunit.xml; fi diff --git a/README.md b/README.md index c073965..0aa482c 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,16 @@ # Damerau Levenshtein -[![Build Status](https://travis-ci.org/Oefenweb/damerau-levenshtein.svg?branch=master)](https://travis-ci.org/Oefenweb/damerau-levenshtein) [![PHP 7 ready](http://php7ready.timesplinter.ch/Oefenweb/damerau-levenshtein/badge.svg)](https://travis-ci.org/Oefenweb/damerau-levenshtein) [![codecov](https://codecov.io/gh/Oefenweb/damerau-levenshtein/branch/master/graph/badge.svg)](https://codecov.io/gh/Oefenweb/damerau-levenshtein) [![Packagist downloads](http://img.shields.io/packagist/dt/Oefenweb/damerau-levenshtein.svg)](https://packagist.org/packages/oefenweb/damerau-levenshtein) [![Code Climate](https://codeclimate.com/github/Oefenweb/damerau-levenshtein/badges/gpa.svg)](https://codeclimate.com/github/Oefenweb/damerau-levenshtein) +[![Build Status](https://travis-ci.org/Oefenweb/damerau-levenshtein.svg?branch=master)](https://travis-ci.org/Oefenweb/damerau-levenshtein) +[![PHP 7 ready](http://php7ready.timesplinter.ch/Oefenweb/damerau-levenshtein/badge.svg)](https://travis-ci.org/Oefenweb/damerau-levenshtein) +[![codecov](https://codecov.io/gh/Oefenweb/damerau-levenshtein/branch/master/graph/badge.svg)](https://codecov.io/gh/Oefenweb/damerau-levenshtein) +[![Packagist downloads](http://img.shields.io/packagist/dt/Oefenweb/damerau-levenshtein.svg)](https://packagist.org/packages/oefenweb/damerau-levenshtein) +[![Code Climate](https://codeclimate.com/github/Oefenweb/damerau-levenshtein/badges/gpa.svg)](https://codeclimate.com/github/Oefenweb/damerau-levenshtein) Get text similarity level with Damerau-Levenshtein distance. ## Requirements -* PHP 5.4.16 or greater. +* PHP 7.0.0 or greater. ## Installation