2021-09-11 04:45:07 +02:00
|
|
|
SHELL = bash
|
|
|
|
|
2021-10-15 00:23:45 +02:00
|
|
|
all: vendor locale-build
|
2021-10-15 01:40:34 +02:00
|
|
|
|
2022-07-11 17:25:50 +02:00
|
|
|
TOOLS = tools/vendor
|
|
|
|
tools: $(TOOLS)
|
|
|
|
$(TOOLS):
|
|
|
|
composer --working-dir=tools install
|
2021-10-15 01:40:34 +02:00
|
|
|
|
2021-10-17 00:20:03 +02:00
|
|
|
locale-update:
|
|
|
|
$(MAKE) -C locale update
|
2021-10-15 00:23:45 +02:00
|
|
|
locale-build:
|
2021-10-17 15:21:17 +02:00
|
|
|
$(MAKE) -C locale clean build
|
2021-10-15 00:23:45 +02:00
|
|
|
|
2023-04-19 17:15:15 +02:00
|
|
|
export COMPOSER_ALLOW_SUPERUSER = true
|
|
|
|
COMPOSER_INSTALL = composer install \
|
|
|
|
--no-interaction \
|
|
|
|
--no-progress \
|
|
|
|
--no-plugins \
|
|
|
|
--no-scripts \
|
|
|
|
--optimize-autoloader
|
|
|
|
|
2021-09-11 04:45:07 +02:00
|
|
|
vendor:
|
2023-04-19 17:15:15 +02:00
|
|
|
$(COMPOSER_INSTALL)
|
2021-09-11 04:45:07 +02:00
|
|
|
|
2021-10-15 01:40:34 +02:00
|
|
|
.PHONY: test
|
2021-09-11 04:45:07 +02:00
|
|
|
test: vendor
|
|
|
|
cd tests && ../vendor/bin/phpunit
|
|
|
|
|
2021-10-15 01:40:34 +02:00
|
|
|
.PHONY: format
|
2022-07-11 17:25:50 +02:00
|
|
|
format: tools
|
|
|
|
$(TOOLS)/bin/php-cs-fixer fix
|
2021-09-15 14:07:26 +02:00
|
|
|
|
2021-10-15 01:40:34 +02:00
|
|
|
.PHONY: lint
|
2022-07-11 17:25:50 +02:00
|
|
|
lint: tools
|
2022-08-24 12:08:30 +02:00
|
|
|
$(TOOLS)/bin/php-cs-fixer fix --verbose --dry-run --diff
|
2021-09-15 14:07:26 +02:00
|
|
|
|
2021-10-15 01:40:34 +02:00
|
|
|
.PHONY: build
|
2023-04-19 17:15:15 +02:00
|
|
|
build: locale-build
|
|
|
|
$(COMPOSER_INSTALL) --no-dev --ignore-platform-reqs
|
Feature: Support php7.4 (#1354)
* Run CI tests against php 7.4
* Sort composer dependencies
* Remove unused Aws S3 php library
* Pin simplepie dependency to ^1.5
* Pin getid3 dependency to ^1.9
* Pin composer semver to ^3.2
* Pin php-amqplib to ^2.12
* Drop sentry logging support
* Update composer dependencies
* Move propel regenerate to Makefile
* Regenerate propel files with v1.7.0
* Pin propel orm to ^1.7
* Regenerate propel files with v1.7.2
* fix: generator_version in airtime-conf-production.php
* Replace propel/propel1 with jooola/propel1
* Regenerate propel files with v1.7.3-dev
* Fix php7.4 compatibility
Using php-cs-fixer:
'@PhpCsFixer' => true,
'concat_space' => ['spacing' => 'one'],
'ordered_class_elements' => false,
'yoda_style' => false,
'@PHP74Migration' => true,
'assign_null_coalescing_to_coalesce_equal' => false,
'ternary_to_null_coalescing' => false,
'heredoc_indentation' => false,
'@PHP74Migration:risky' => true,
'declare_strict_types' => false,
'void_return' => false,
'use_arrow_functions' => false,
* Fix pre-commit
2021-10-17 17:19:53 +02:00
|
|
|
|
|
|
|
propel-gen: vendor
|
|
|
|
cd build && \
|
|
|
|
../vendor/bin/propel-gen \
|
|
|
|
-Dproject.home="$(shell pwd)"
|