Skip to content

Commit 8f7e239

Browse files
committed
Updating the Makefile and Travis-CI config
1 parent e28cf54 commit 8f7e239

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ before_install:
1919

2020
install:
2121
- composer self-update
22-
- composer install --prefer-dist
22+
- make install-deps
2323

2424
script:
2525
- composer validate

Makefile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
# Define directories
2+
VENDOR_DIR ?= $(CURDIR)/vendor
3+
4+
5+
# Global/default target
16
all: install test lint check-style
27

3-
install:
4-
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)
515

616
test:
717
./vendor/bin/phpunit
@@ -18,3 +28,5 @@ lint:
1828

1929
check-style:
2030
./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

Comments
 (0)