-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (30 loc) · 1.09 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
.PHONY: test
init: editorconfig
@echo "version=7.1.0" > .env
editorconfig:
@curl -so .editorconfig https://editorconfig.javanile.org/lib/php
install-composer:
@docker-compose run --rm vtiger curl -sS https://getcomposer.org/installer -o ./contrib/composer-installer.php
@docker-compose run --rm vtiger php ./contrib/composer-installer.php -- --install-dir=./contrib --filename=composer
install: init
@docker-compose run --rm vtiger php ./contrib/composer install
update:
@docker-compose run --rm vtiger php ./contrib/composer update $(take)
require:
@docker-compose run --rm vtiger php ./contrib/composer require $(take)
dump-autoload:
@docker-compose run --rm vtiger php ./contrib/composer dump-autoload
update-readme: init
@docker-compose run --rm vtiger php ./contrib/update-readme.php
up:
@docker-compose up -d
test:
@bash contrib/test-runner.sh
test-dev:
@docker-compose run --rm vtiger ./vendor/bin/phpunit tests
tdd: up
@docker-compose run --rm vtiger ./vendor/bin/phpunit --stop-on-failure --filter $(take)
release: update-readme
@git add .
@git commit -am "release"
@git push