-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
66 lines (58 loc) · 1.8 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
CODEDIR = .
init: $(CODEDIR)/benchmarks/*/composer.json $(CODEDIR)/composer.json
for file in $^ ; do \
docker run --rm --tty \
--volume $$PWD:/app \
--workdir /app/`dirname $${file}` \
--volume ${COMPOSER_CACHE_DIR:-$$HOME/.cache/composer}:$$COMPOSER_CACHE_DIR \
--user $$(id -u):$$(id -g) \
composer:2.1.5 install; \
done
composer-optimise: $(CODEDIR)/benchmarks/*/composer.json $(CODEDIR)/composer.json
for file in $^ ; do \
docker run --rm --tty \
--volume $$PWD:/app \
--workdir /app/`dirname $${file}` \
--volume ${COMPOSER_CACHE_DIR:-$$HOME/.cache/composer}:$$COMPOSER_CACHE_DIR \
--user $$(id -u):$$(id -g) \
composer:2.1.5 install --optimize-autoloader --classmap-authoritative; \
done
composer-update: $(CODEDIR)/benchmarks/*/composer.json $(CODEDIR)/composer.json
for file in $^ ; do \
docker run --rm --tty \
--volume $$PWD:/app \
--workdir /app/`dirname $${file}` \
--volume ${COMPOSER_CACHE_DIR:-$$HOME/.cache/composer}:$$COMPOSER_CACHE_DIR \
--user $$(id -u):$$(id -g) \
composer:2.1.5 update; \
done
test:
docker run --rm \
--volume $$PWD:/app \
--workdir /app \
--user $$(id -u):$$(id -g) \
php:8.0.12-cli php ./vendor/bin/phpbench run --report=bench
test-php81:
docker run --rm \
--volume $$PWD:/app \
--workdir /app \
--user $$(id -u):$$(id -g) \
php:8.1-rc-cli php ./vendor/bin/phpbench run --report=bench
test-php82:
docker run --rm \
--volume $$PWD:/app \
--workdir /app \
--user $$(id -u):$$(id -g) \
php:8.2-rc-cli php ./vendor/bin/phpbench run --report=bench
bash-php:
docker run --rm -it \
--volume $$PWD:/app \
--workdir /app \
--user $$(id -u):$$(id -g) \
php:8.0-cli bash
bash-composer:
docker run --rm -it \
--volume $$PWD:/app \
--workdir /app \
--user $$(id -u):$$(id -g) \
composer:2.1.5 bash