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
|
|
|
|
|
|
|
PHP-CS-FIXER = tools/vendor/bin/php-cs-fixer
|
|
|
|
$(PHP-CS-FIXER):
|
|
|
|
mkdir -p tools
|
|
|
|
composer require --working-dir=tools friendsofphp/php-cs-fixer
|
|
|
|
|
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
|
|
|
|
2021-09-11 04:45:07 +02:00
|
|
|
vendor:
|
2021-10-15 01:40:34 +02:00
|
|
|
composer install --no-progress --no-interaction $(COMPOSER_ARGS)
|
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
|
|
|
|
format: $(PHP-CS-FIXER)
|
|
|
|
$(PHP-CS-FIXER) fix
|
2021-09-15 14:07:26 +02:00
|
|
|
|
2021-10-15 01:40:34 +02:00
|
|
|
.PHONY: lint
|
|
|
|
lint: $(PHP-CS-FIXER)
|
|
|
|
$(PHP-CS-FIXER) fix --dry-run --diff
|
2021-09-15 14:07:26 +02:00
|
|
|
|
2021-10-15 01:40:34 +02:00
|
|
|
.PHONY: build
|
|
|
|
build:
|
2021-10-15 14:59:59 +02:00
|
|
|
COMPOSER_ARGS="--no-dev --ignore-platform-reqs" $(MAKE)
|
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)"
|