-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
41 lines (29 loc) · 1.04 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
PHPARGS=-dmemory_limit=64M
#PHPARGS=-dmemory_limit=64M -dzend_extension=xdebug.so -dxdebug.remote_enable=1 -dxdebug.remote_host=127.0.0.1 -dxdebug.remote_autostart=1
#PHPARGS=-dmemory_limit=64M -dxdebug.remote_enable=1
all:
check-style:
vendor/bin/php-cs-fixer fix src/ --diff --dry-run
fix-style:
vendor/bin/indent --tabs composer.json
vendor/bin/indent --spaces .php_cs.dist
vendor/bin/php-cs-fixer fix src/ --diff
install:
composer install --prefer-dist --no-interaction
test:
php $(PHPARGS) vendor/bin/codecept run
clean_all:
docker-compose down
sudo rm -rf tests/tmp/*
up:
docker-compose up -d
chmod +rw -R tests/tmp
chmod +rw -R tests/codeception
mkdir -p tests/testapp/runtime && chmod +rw -R tests/testapp/runtime
cli:
docker-compose exec php bash
installdocker:
docker-compose run --rm php composer install && chmod +x tests/testapp/yii
testdocker:
docker-compose run --rm php sh -c 'vendor/bin/codecept run --env docker'
.PHONY: all check-style fix-style install test clean clean_all up cli installdocker migrate testdocker