-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
70 lines (56 loc) · 1.7 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
#=== Akeneo Transporteo helper ===
# Styles
YELLOW=$(shell echo "\033[00;33m")
RED=$(shell echo "\033[00;31m")
RESTORE=$(shell echo "\033[0m")
CURRENT_DIR := $(shell pwd)
.PHONY: list
list:
@echo ""
@echo "Transporteo available targets:"
@echo ""
@echo " $(YELLOW)commit$(RESTORE) > run pre commit stuff"
@echo " $(YELLOW)fix-style$(RESTORE) > run the PHP-CS-FIXER"
@echo " $(YELLOW)test$(RESTORE) > run All tests"
@echo " $(YELLOW)phpspec-run$(RESTORE) > run All PHPSpec tests"
@echo " $(YELLOW)phpunit$(RESTORE) > run All PHPUnit"
@echo " $(YELLOW)launch$(RESTORE) > Launch the tool"
@echo " $(YELLOW)dump-state-machine$(RESTORE) > Dump the State Machine"
@echo ""
@echo ""
@echo " $(YELLOW)composer$(RESTORE) > run composer"
@echo " $(YELLOW)install$(RESTORE) > install vendors"
@echo " $(YELLOW)update$(RESTORE) > update vendors"
@echo " $(YELLOW)clean$(RESTORE) > removes the vendors"
.PHONY: commit
commit: | fix-style test dump-state-machine
.PHONY: fix-style
fix-style:
vendor/bin/php-cs-fixer fix --config=./.php_cs.php
.PHONY: launch
launch:
php Transporteo.php akeneo-pim:migrate
.PHONY: dump-state-machine
dump-state-machine:
php Transporteo.php state-machine:dump
dot -Tpng stateMachineTransporteo.dot -o stateMachineTransporteo.png
.PHONY: test
test: | phpspec-run phpunit
.PHONY: phpspec-run
phpspec-run:
./vendor/bin/phpspec run ${ARGS}
.PHONY: phpunit
phpunit:
./vendor/bin/phpunit ${ARGS} --exclude-group 'docker-compose'
.PHONY: composer
composer:
composer ${ARGS}
.PHONY: install
install:
composer install
.PHONY: update
update:
composer update
.PHONY: clean
clean:
rm -rf vendor