Update Makefile
This commit is contained in:
parent
226b61845b
commit
8249195df4
13
Makefile
13
Makefile
@ -1,21 +1,12 @@
|
|||||||
ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
SRC_DIR=$(ROOT_DIR)/src
|
SRC_DIR=$(ROOT_DIR)/src
|
||||||
BIN_DIR=$(ROOT_DIR)/bin
|
BIN_DIR=$(ROOT_DIR)/bin
|
||||||
export PATH := $(PATH):$(ROOT_DIR)/dot
|
|
||||||
|
|
||||||
deps:
|
|
||||||
@echo "==> Installing dependencies"
|
|
||||||
@curl -L https://getcomposer.org/composer.phar -o $(BIN_DIR)/composer
|
|
||||||
@COMPOSER_HOME=/tmp php -d memory_limit=-1 $(BIN_DIR)/composer install
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@echo "==> Running tests"
|
@echo "==> Running tests"
|
||||||
@cd $(ROOT_DIR)
|
@cd $(ROOT_DIR)
|
||||||
ifeq ($(wildcard .env), )
|
|
||||||
@echo "==> Creating .env file for testing purposes..."
|
|
||||||
@cp .env.dist .env
|
@cp .env.dist .env
|
||||||
endif
|
@php -d memory_limit=-1 $(BIN_DIR)/phpunit -c phpunit.xml.dist
|
||||||
@php -d memory_limit=-1 $(BIN_DIR)/phpunit -c phpunit.xml.dist --log-junit $(ROOT_DIR)/test-report.xml
|
|
||||||
@echo "==> Testing complete"
|
@echo "==> Testing complete"
|
||||||
|
|
||||||
stan:
|
stan:
|
||||||
@ -24,4 +15,4 @@ stan:
|
|||||||
@echo "==> Analysis complete"
|
@echo "==> Analysis complete"
|
||||||
|
|
||||||
travis: test stan
|
travis: test stan
|
||||||
@echo "==> Completed"
|
@echo "==> Completed"
|
||||||
|
Loading…
Reference in New Issue
Block a user