forked from LasVegasCoder/Twilio-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
35 lines (25 loc) · 1.11 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
# Twilio API helper library.
# See LICENSE file for copyright and license details.
COMPOSER = $(shell which composer)
ifeq ($(strip $(COMPOSER)),)
COMPOSER = php composer.phar
endif
all: test
clean:
@rm -rf venv vendor
install:
@composer --version || (echo "Composer is not installed, please install Composer"; exit 1);
# Composer: http://getcomposer.org/download/
$(COMPOSER) install
vendor: install
# if these fail, you may need to install the helper library
test: install
@PATH=vendor/bin:$(PATH) phpunit --report-useless-tests --strict-coverage --disallow-test-output --colors --configuration Twilio/Tests/phpunit.xml
docs-install:
composer require --dev apigen/apigen
docs: docs-install
vendor/bin/apigen generate -s ./ -d docs/api --exclude="Tests/*" --exclude="vendor/*" --exclude="autoload.php" --template-theme bootstrap --main Twilio
authors:
echo "Authors\n=======\n\nA huge thanks to all of our contributors:\n\n" > AUTHORS.md
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
.PHONY: all clean test docs docs-install test-install authors