summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2019-05-28 13:00:00 +0200
committerWilliam Desportes <williamdes@wdes.fr>2019-05-28 15:08:28 +0200
commit724b2330dc4cb6247aa1649cc1f49fce496f2e3c (patch)
tree914810549cad0b6db443e3827a679d795df11164
parentf2f621e1f62c5f1445f6f301fcf04eabb96ee3bd (diff)
downloadsql-parser-724b2330dc4cb6247aa1649cc1f49fce496f2e3c.zip
sql-parser-724b2330dc4cb6247aa1649cc1f49fce496f2e3c.tar.gz
sql-parser-724b2330dc4cb6247aa1649cc1f49fce496f2e3c.tar.bz2
Partial revert "Bump minimum version to PHP 7.1"
This reverts commit 2941ff6b8b9c4d50362f3bc9bb79f086376c4acc. Signed-off-by: William Desportes <williamdes@wdes.fr>
-rw-r--r--.travis.yml10
-rw-r--r--composer.json4
-rw-r--r--phpunit.xml.dist3
3 files changed, 14 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 70bc136..70ba274 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,9 +3,16 @@ language: php
dist: trusty
php:
+ - 5.4
+ - 5.5
+ - 5.6
+ - 7.0
- 7.1
- 7.2
- 7.3
+ - hhvm-3.12
+ - hhvm-3.18
+ - hhvm-3.24
- nightly
matrix:
@@ -17,10 +24,13 @@ matrix:
env: DOCS=yes
- php: 7.1
env: REQUIRE="phpmyadmin/motranslator:^3.0"
+ - dist: precise
+ php: 5.3
sudo: false
install:
+ - if [ $(php -r "echo PHP_MAJOR_VERSION;") -lt 7 ] ; then sed -i '/sami/D' composer.json ; fi
- if [ -n "$REQUIRE" ] ; then composer require "$REQUIRE" ; fi
- composer install
diff --git a/composer.json b/composer.json
index c525411..b824c85 100644
--- a/composer.json
+++ b/composer.json
@@ -16,13 +16,13 @@
"source": "https://github.com/phpmyadmin/sql-parser"
},
"require": {
- "php": "^7.1",
+ "php": ">=5.3.0",
"symfony/polyfill-mbstring": "^1.3"
},
"require-dev": {
"sami/sami": "^4.0",
"phpunit/php-code-coverage": "*",
- "phpunit/phpunit": "^7.4",
+ "phpunit/phpunit": "~4.8 || ~5.7 || ~6.5",
"phpmyadmin/coding-standard": "^1.0"
},
"conflict": {
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 36faf50..d96b96d 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -9,7 +9,8 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
- stopOnFailure="false">
+ stopOnFailure="false"
+ syntaxCheck="false">
<logging>
<log type="coverage-clover" target="coverage.xml" />
</logging>