-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
48 lines (37 loc) · 939 Bytes
/
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
.PHONY: dev
dev: .env
docker-compose up -d
.env:
cp .env.dist .env
.PHONY: down
down:
docker-compose down
.PHONY: php
php:
docker exec -it bos-oanda-client sh
.PHONY: build
build:
composer install
.PHONY: clear
clear:
rm -rf var/*
.PHONY: fix-cs
fix-cs:
PHP_CS_FIXER_IGNORE_ENV=true ./vendor/bin/php-cs-fixer fix --show-progress=estimating
.PHONY: validate-cs
validate-cs:
PHP_CS_FIXER_IGNORE_ENV=true ./vendor/bin/php-cs-fixer fix --show-progress=estimating --dry-run
.PHONY: test
test: clear validate-cs
XDEBUG_MODE=coverage ./vendor/bin/phpunit \
--testsuite all \
--coverage-html build/coverage \
--log-junit build/logs/phpunit/junit.xml
.PHONY: test-unit
test-unit:
XDEBUG_MODE=coverage ./vendor/bin/phpunit --testsuite unit \
--coverage-html build/coverage
.PHONY: test-functional
test-functional:
XDEBUG_MODE=coverage ./vendor/bin/phpunit --testsuite functional \
--coverage-html build/coverage