-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 991 Bytes
/
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
PHPUNIT_FLAGS :=--stop-on-failure --colors="always" --no-coverage
PHPUNIT_FLAGS_DEBUG :=--colors="always" --no-coverage --printer="tests\blazemeter\PHPUnitPrinter\Printer"
SRC_DIR := src
TESTS_DIR := tests
test: ./${TESTS_DIR}
./vendor/bin/phpunit ${PHPUNIT_FLAGS} --configuration ./${TESTS_DIR}/phpunit.xml $</$(patsubst $(TESTS_DIR)/%,%,$(TEST_FILE)) 2>&1 | tee test.log
date
run:
TRACE=2 ./build/run.sh 2>&1 | tee run.log
runphp:
NUM_WORKERS=10 php -S "0.0.0.0:8001" -t src
runhttptest:
php -S "0.0.0.0:8003"
update: composer.json
composer update
install: update download-shells
composer install
download-shells:
./build/make-shells.sh
container-build:
git clean -f -d
./build/container-build.sh 2>&1 | tee container-build.log
container-build-no-push:
#git clean -f -d
./build/container-build.sh no-push 2>&1 | tee container-build.log
container-build-old:
docker build -f Dockerfile -t ghcr.io/mosermichael/phpdocker-mm:latest . 2>&1 | tee container-build.log