-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
58 lines (46 loc) · 1.68 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
#######################################################
# DO NOT EDIT THIS FILE! #
# #
# It's auto-generated by symfony-cmf/dev-kit package. #
#######################################################
############################################################################
# This file is part of the Symfony CMF package. #
# #
# (c) 2011-2017 Symfony CMF #
# #
# For the full copyright and license information, please view the LICENSE #
# file that was distributed with this source code. #
############################################################################
TESTING_SCRIPTS_DIR=bin
CONSOLE=${TESTING_SCRIPTS_DIR}/console
VERSION=dev-master
ifdef BRANCH
VERSION=dev-${BRANCH}
endif
PACKAGE=symfony-cmf/testing
HAS_XDEBUG=$(shell php --modules|grep --quiet xdebug;echo $$?)
list:
@echo 'test: will run all tests'
@echo 'unit_tests: will run unit tests only'
include ${TESTING_SCRIPTS_DIR}/make/unit_tests.mk
.PHONY: test
test: unit_tests
lint-php:
php-cs-fixer fix --ansi --verbose --diff --dry-run
.PHONY: lint-php
int: lint-composer lint-php
.PHONY: lint
lint-composer:
composer validate
.PHONY: lint-composer
cs-fix: cs-fix-php
.PHONY: cs-fix
cs-fix-php:
php-cs-fixer fix --verbose
.PHONY: cs-fix-php
build:
mkdir $@
build/xdebug-filter.php: phpunit.xml.dist build
ifeq ($(HAS_XDEBUG), 0)
phpunit --dump-xdebug-filter $@
endif