-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (50 loc) · 1.77 KB
/
Copy pathMakefile
File metadata and controls
73 lines (50 loc) · 1.77 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/make -f
SHELL := /bin/bash
# Test that we have the necessary binaries available
define checkExecutables
$(foreach exec,$(1),\
$(if $(shell command -v $(exec)),,$(error Unable to find `$(exec)` in your PATH)))
endef
test := $(call checkExecutables, composer)
# Note that all comments with two hashes(#) will be used for output with `make help`. Alignment is tricky!
.PHONY: help
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
##
## TU Shareable — TransUnion shareable reports integration. Run `make help` to list targets.
##
##
## --- Setup ---------------------------------------------------------------
##
.PHONY: init
init: ## Initializes the project and all dependencies
@composer install
@cp ./config.template ./config
@echo "Config template copied. Please edit the ./config file with your Transunion API credentials."
##
## --- Dependencies --------------------------------------------------------
##
.PHONY: install-vendors
install-vendors: ## Installs vendor dependencies
$(call checkExecutables, composer)
@composer install
.PHONY: update-vendors
update-vendors: ## Updates vendor dependencies
$(call checkExecutables, composer)
@composer update
##
## --- TransUnion ----------------------------------------------------------
##
.PHONY: check-status
check-status: ## Checks the status of the Transunion API
@bin/getStatus
.PHONY: register-with-transunion
register-with-transunion: ## Registers the API key with Transunion
@bin/register
##
## --- Testing -------------------------------------------------------------
##
.PHONY: test
test: ## Executes the test suites
$(call checkExecutables, phpunit)
@phpunit