Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,18 @@ PHPVERSION = $(shell php -r 'echo PHP_VERSION;')
all: test

clean:
@rm -rf venv vendor composer.lock
@rm -rf docs venv vendor composer.lock

install: clean
@composer --version || (curl -s https://getcomposer.org/installer | php);
$(COMPOSER) config platform.php $(PHPVERSION)
$(COMPOSER) install

vendor: install

# if these fail, you may need to install the helper library
test: install
$(COMPOSER) require --dev phpunit/phpunit
@PATH=vendor/bin:$(PATH) phpunit --strict-coverage --disallow-test-output --colors --configuration tests/phpunit.xml

docs-install:
composer require --dev apigen/apigen

docs: docs-install
docs:
vendor/bin/apigen generate --source src -d docs/api --exclude="autoload.php" --template-theme bootstrap --main Twilio

authors:
Expand Down Expand Up @@ -59,4 +53,4 @@ docker-dev-clean:
docker-dev-test:
docker exec -t twilio_php${VERSION} /bin/bash -c 'make all'

.PHONY: all clean test docs docs-install test-install authors docker-dev-build docker-dev-clean docker-dev-test
.PHONY: all clean install test docs authors docker-dev-build docker-dev-clean docker-dev-test
7 changes: 1 addition & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require-dev": {
"guzzlehttp/guzzle": "^6.3",
"apigen/apigen": "^4.1",
"phpunit/phpunit": "^7.5"
"phpunit/phpunit": ">=4.5"
},
"suggest": {
"guzzlehttp/guzzle": "An HTTP client to execute the API requests"
Expand All @@ -31,10 +31,5 @@
"psr-4": {
"Twilio\\Tests\\": "tests/Twilio/"
}
},
"config": {
"platform": {
"php": "7.1.23"
}
}
}