From 9651e41907c0705eb87107a4e7f92098c9e53f09 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 11 Mar 2021 14:19:08 +0100 Subject: test build of upcoming 5.5.0 raise dependency on PHP 7.2 raise dependency on bartlett/php-compatinfo-db 3.3 --- composer.json | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'composer.json') diff --git a/composer.json b/composer.json index 06575eb..7d2e089 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "issues": "https://github.com/llaville/php-compat-info/issues" }, "require": { - "php": "^7.1.3|^8.0", + "php": "^7.2|^8.0", "ext-libxml": "*", "ext-pcre": "*", "ext-spl": "*", @@ -18,7 +18,7 @@ "ext-pdo": "*", "ext-pdo_sqlite": "*", "bartlett/php-reflect": "^4.4", - "bartlett/php-compatinfo-db": "^2.0", + "bartlett/php-compatinfo-db": "^3.3", "doctrine/collections": "^1.4", "composer/package-versions-deprecated": "^1.8", "psr/log": "^1.0", @@ -57,6 +57,24 @@ "Bartlett\\Tests\\CompatInfo\\": "tests/" } }, + "scripts": { + "setup-database": [ + "mkdir -p ${HOME}/.cache/bartlett/ && touch ${HOME}/.cache/bartlett/compatinfo-db.sqlite", + "export DATABASE_URL=sqlite:///${HOME}/.cache/bartlett/compatinfo-db.sqlite", + "vendor/bin/doctrine orm:generate-proxies" + ], + "post-install-cmd": [ + "@setup-database", + "vendor/bin/doctrine orm:schema-tool:create", + "vendor/bartlett/php-compatinfo-db/bin/compatinfo-db db:init" + ], + "post-update-cmd": [ + "@setup-database" + ] + }, + "scripts-descriptions": { + "setup-database": "Initializes SQLite database from JSON files in data directory." + }, "minimum-stability": "dev", "prefer-stable": true, "config": { -- cgit