diff options
author | Remi Collet <remi@remirepo.net> | 2021-03-11 14:19:08 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-03-11 14:19:08 +0100 |
commit | 9651e41907c0705eb87107a4e7f92098c9e53f09 (patch) | |
tree | e4f7ca5c5b8f7a31886d8b2eafd49b025b3c77d1 /composer.json | |
parent | 4aa30fa9a7285897b6943081454c018839d6ec73 (diff) |
test build of upcoming 5.5.0
raise dependency on PHP 7.2
raise dependency on bartlett/php-compatinfo-db 3.3
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 22 |
1 files changed, 20 insertions, 2 deletions
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": { |