forked from PaddleHQ/openapi-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (15 loc) · 727 Bytes
/
Makefile
File metadata and controls
21 lines (15 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# User & Group ID used in Dockerfile for correcting permissions
UID=$(shell id -u `whoami`)
GID=$(shell id -g `whoami`)
COMPOSER_RUN=docker run --rm --tty --user $(UID):$(GID) --volume "${PWD}":/app composer
PHP_RUN=docker run --rm --user $(UID):$(GID) --workdir /app --volume "${PWD}":/app php:7.1-cli-alpine
composer-install:
$(COMPOSER_RUN) install --prefer-dist
composer-update:
$(COMPOSER_RUN) update --prefer-dist
test-unit:
$(PHP_RUN) php vendor/bin/phpunit --stop-on-failure
lint-style: ## Run phpcs-fixer in lint mode
$(PHP_RUN) php vendor/bin/php-cs-fixer fix --config .php_cs --verbose --dry-run --using-cache=false
fix-style: ## Run phpcs-fixer
$(PHP_RUN) php vendor/bin/php-cs-fixer fix --config .php_cs