This repository was archived by the owner on Apr 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (37 loc) · 1.4 KB
/
Makefile
File metadata and controls
44 lines (37 loc) · 1.4 KB
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
PHP?=php
PHPOPTS=
PHPCMD=$(PHP) $(PHPOPTS)
CONSOLE?=bin/console
CONSOLEOPTS=
CONSOLECMD=$(PHPCMD) $(CONSOLE) $(CONSOLEOPTS)
COMPOSER:=$(shell if which composer > /dev/null 2>&1; then which composer; fi)
COMPOSEROPTS=
help:
@echo 'Makefile for a Symfony application '
@echo ' '
@echo 'Usage: '
@echo ' make clear clear the cache '
@echo ' make deps install project dependencies '
@echo ' make setup setup project for development '
@echo ' make test execute test suite '
@echo ' set COVERAGE=true to run coverage'
@echo ' '
clear:
$(CONSOLECMD) cache:clear
deps:
ifdef COMPOSER
$(COMPOSER) install $(COMPOSEROPTS)
endif
setup:
$(CONSOLECMD) oro:install --organization-name Oro --user-name admin --user-email admin@example.com --user-firstname John --user-lastname Doe --user-password admin --sample-data n --application-url http://local.platform.webplates.xyz --force
test:
$(CONSOLECMD) lint:yaml -v --ansi app
ifeq ($(COVERAGE), true)
vendor/bin/phpspec run -c phpspec.ci.yml
vendor/bin/phpunit --coverage-text --coverage-clover build/coverage.clover
else
vendor/bin/phpspec run
vendor/bin/phpunit
endif
vendor/bin/behat
.PHONY: help clear deps setup test