-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·85 lines (60 loc) · 2.31 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.PHONY: debug
update:
bash contrib/update.sh
build: update
docker-compose build vtiger
up: update
docker-compose up --build -d vtiger
ps:
docker-compose ps
pull:
docker-compose pull --include-deps
debug: up
docker-compose exec vtiger debug
release: update
bash contrib/release.sh
xdebug: up
docker-compose logs -f xdebug
bash:
@docker-compose exec vtiger bash
## =====
## Tests
## =====
test-vtiger: update
@docker-compose up --build --force-recreate -d vtiger
@echo "Visit: <http://localhost:8080>"
test-debug: update
docker run -t -i --rm -v ${PWD}:/app javanile/vtiger-dev:7.1.0 debug
test-debug-polling: update
docker run -t -i --rm -v ${PWD}:/app javanile/vtiger-dev:7.1.0 debug --polling
test-debug-disable-watch: update
docker run -t -i --rm -v ${PWD}:/app javanile/vtiger-dev:7.1.0 debug --disable-watch
test-xdebug: update
#docker run -t -i --rm -v ${PWD}:/app javanile/vtiger-dev:7.1.0 cat /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
#docker run -t -i --rm -v ${PWD}:/app javanile/vtiger-dev:7.1.0 php --ini
docker run -t -i --rm -v ${PWD}:/app javanile/vtiger-dev:7.1.0
test-profiler: update
#docker run -t -i --rm -v ${PWD}:/app javanile/vtiger-dev:7.1.0 cat /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
#docker run -t -i --rm -v ${PWD}:/app javanile/vtiger-dev:7.1.0 php --ini
docker run -t -i --rm -v ${PWD}:/app javanile/vtiger-dev:7.1.0
test-mysql: update up
docker-compose run --rm vtiger bash -c "mysql -hmysql -uroot -psecret vtiger -e 'SHOW TABLES'"
test-phpunit: update up
docker-compose run --rm vtiger phpunit /var/www/html/test/VtigerTest.php
test-phpmd: update up
docker-compose run --rm vtiger phpmd --help
test-websocket: update up
uwsc ws://localhost:8080/websocket-test.php
test-foreground: pull update up
docker compose up --build --force-recreate vtiger
test-gd: build
docker compose run --rm vtiger php -r "imagejpeg();"
test-phpdbg: build
docker compose run --rm vtiger phpdbg
test-intl: build
@docker compose run --rm vtiger php -r "var_dump(new Spoofchecker());"
test-pcov: build
@docker compose run --rm vtiger rm -fr tests/fixtures/simple-project/coverage || true
@docker compose run --rm -e PCOV_DIR=/app vtiger pcov tests/fixtures/simple-project \
--config=tests/fixtures/simple-project/phpunit.xml \
--coverage-html=tests/fixtures/simple-project/coverage