We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Makefile
1 parent e28cf54 commit 8f7e239Copy full SHA for 8f7e239
2 files changed
.travis.yml
@@ -19,7 +19,7 @@ before_install:
19
20
install:
21
- composer self-update
22
- - composer install --prefer-dist
+ - make install-deps
23
24
script:
25
- composer validate
Makefile
@@ -1,7 +1,17 @@
1
+# Define directories
2
+VENDOR_DIR ?= $(CURDIR)/vendor
3
+
4
5
+# Global/default target
6
all: install test lint check-style
7
-install:
- composer install --prefer-dist
8
+$(VENDOR_DIR):
9
+ composer install --no-interaction --prefer-dist
10
11
+install-deps: $(VENDOR_DIR)
12
13
+clean-deps:
14
+ rm -rf $(VENDOR_DIR)
15
16
test:
17
./vendor/bin/phpunit
@@ -18,3 +28,5 @@ lint:
18
28
29
check-style:
30
./vendor/bin/phpcs --standard=PSR2 --encoding=utf-8 -p src/ tests/
31
32
+.PHONY: all install-deps clean-deps test test-with-coverage test-with-coverage-clover lint check-style
0 commit comments