Skip to content

Commit 131670d

Browse files
committed
Adds automation tasks
1 parent df4ceea commit 131670d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

Makefile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
### Variables
2+
3+
# Applications
4+
COMPOSER ?= composer
5+
6+
### Helpers
7+
all: clean depend
8+
9+
.PHONY: all
10+
11+
### Dependencies
12+
depend:
13+
${COMPOSER} install --no-progress --optimize-autoloader
14+
15+
.PHONY: depend
16+
17+
### Cleaning
18+
clean:
19+
rm -rf vendor
20+
21+
git-master:
22+
git checkout master
23+
24+
.PHONY: clean git-master
25+
26+
### QA
27+
qa: lint
28+
29+
lint:
30+
find ./src -name "*.php" -exec /usr/bin/env php -l {} \; | grep "Parse error" > /dev/null && exit 1 || exit 0
31+
32+
.PHONY: qa lint
33+
34+
### Testing
35+
tests:
36+
php vendor/bin/phpunit -v --colors --coverage-text
37+
38+
tests-report:
39+
php vendor/bin/phpunit -v --colors --coverage-html ./build/tests
40+
41+
.PHONY: tests tests-report

0 commit comments

Comments
 (0)