-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
110 lines (77 loc) · 3.32 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!make
clean:
@docker-compose run --rm vtiger rm -f /var/lib/vtiger/logs/vtiger-client.log
@docker-compose run --rm vtiger rm -f /var/lib/vtiger/logs/vtiger-client.json
update:
@docker-compose run --rm composer update
up:
@docker-compose up -d
start:
@docker-compose up -d
down:
@docker-compose down -v
debugger:
@docker-compose run --rm vtiger php tests/bin/debugger.php
## -----
## Build
## -----
build: bin/vtc.phar
bin/vtc.phar:
@[ -d vendor ] && mv vendor vendor.tmp || true
@[ -f composer.lock ] && mv composer.lock composer.lock.tmp || true
@docker-compose run --rm -u $$(id -u) vtiger composer install --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
@docker-compose run --rm box compile
@[ -f composer.lock.tmp ] && mv -f composer.lock.tmp composer.lock || true
@[ -d vendor.tmp ] && mv vendor.tmp vendor || true
## -------
## Develop
## -------
dev-clean:
@docker-compose run --rm vtiger rm -fr debug tmp vendor vendor.tmp
dev-install:
@docker-compose run --rm -u $$(id -u) vtiger composer install
dev-update:
@docker-compose run --rm -u $$(id -u) vtiger composer update
## -------
## Testing
## -------
test: clean down up test-all
test-all: up
@while [ -f .vtiger.lock ]; do sleep 2; done
@docker-compose run --rm phpunit tests --stop-on-failure
test-create-purchase-order:
@docker-compose run --rm phpunit tests --filter ::testCreatePurchaseOrder
test-create-and-update-line-item: clean
@docker-compose run --rm phpunit tests --filter ::testCreateAndUpdateLineItem
test-create-every-types: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testCreateEveryTypes
test-revise-every-types: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testReviseEveryTypes
test-update-every-types: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testUpdateEveryTypes
test-describe: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testDescribe
test-describe-with-depth-1: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testDescribeWithDepth1
test-describe-with-all-depth: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testDescribeWithAllDepth
test-retrieve-with-depth-zero: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testRetrieveWithDepthZero
test-retrieve-with-depth: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testRetrieveWithDepth
test-retrieve-with-depth-one: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testRetrieveWithDepthOne
test-retrieve-not-found: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testRetrieveNotFound
test-sync-with-depth: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testSyncWithDepth
test-operation-mapper: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter OperationMapperTest
test-list-types: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testListTypes
test-query-with-join: clean
@docker-compose run --rm phpunit tests --stop-on-failure --filter ::testQueryWithJoin
test-cli:
@docker-compose run --rm phpunit tests --stop-on-failure --filter CliTest::
test-stop-on-failure:
@docker-compose run --rm phpunit tests --stop-on-failure