forked from Elao/PhpEnums
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (54 loc) · 1.44 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
PHP_CS_FIXER_VERSION=v3.4.0
###########
# Install #
###########
setup:
composer global require --no-progress --no-scripts --no-plugins symfony/flex
install: setup
install:
rm -f composer.lock
composer config minimum-stability --unset
composer update --prefer-dist
install-lowest: setup
install-lowest: export SYMFONY_REQUIRE = 5.4.*@dev
install-lowest:
composer config minimum-stability --unset
composer update --prefer-lowest
install-54: setup
install-54: export SYMFONY_REQUIRE = 5.4.*@dev
install-54:
composer config minimum-stability dev
composer update
install-60: setup
install-60: export SYMFONY_REQUIRE = 6.0.*@dev
install-60:
composer config minimum-stability dev
composer update
install-61: setup
install-61: export SYMFONY_REQUIRE = 6.1.*@dev
install-61:
composer config minimum-stability dev
composer update
########
# Test #
########
test:
vendor/bin/simple-phpunit
testdox:
vendor/bin/simple-phpunit --testdox --verbose
########
# Lint #
########
lint: lint-php-cs-fixer
php-cs-fixer.phar:
wget --no-verbose https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/${PHP_CS_FIXER_VERSION}/php-cs-fixer.phar
chmod +x php-cs-fixer.phar
update-php-cs-fixer.phar:
rm -f php-cs-fixer.phar
make php-cs-fixer.phar
fix-php-cs-fixer: php-cs-fixer.phar
fix-php-cs-fixer:
./php-cs-fixer.phar fix --no-interaction
lint-php-cs-fixer: php-cs-fixer.phar
lint-php-cs-fixer:
./php-cs-fixer.phar fix --no-interaction --dry-run --diff -vvv