From e42cf999212af596b03d3c2f2fb9af35c43e7357 Mon Sep 17 00:00:00 2001 From: kocsismate Date: Fri, 11 Jan 2019 10:42:40 +0100 Subject: [PATCH] Add releaser script --- Makefile | 17 ++++++++++------- composer.json | 3 ++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index e292e1c..5ace25f 100755 --- a/Makefile +++ b/Makefile @@ -14,12 +14,6 @@ help: build: docker-compose -f docker-compose.examples.yml stop --timeout=2 && docker-compose -f docker-compose.examples.yml up -composer-install: - docker run --rm --interactive --tty --volume $(PWD):/app --user $(id -u):$(id -g) composer install --ignore-platform-reqs - -composer-update: - docker run --rm --interactive --tty --volume $(PWD):/app --user $(id -u):$(id -g) composer update --ignore-platform-reqs - test: docker-compose up @@ -30,4 +24,13 @@ cs: docker-compose run --rm zen-php /var/www/vendor/bin/phpcs --standard=/var/www/phpcs.xml cs-fix: - docker-compose -f docker-compose.yml run --rm zen-php /var/www/vendor/bin/phpcbf --standard=/var/www/phpcs.xml + docker-compose run --rm zen-php /var/www/vendor/bin/phpcbf --standard=/var/www/phpcs.xml + +composer-install: + docker run --rm --interactive --tty --volume $(PWD):/app --user $(id -u):$(id -g) composer install --ignore-platform-reqs + +composer-update: + docker run --rm --interactive --tty --volume $(PWD):/app --user $(id -u):$(id -g) composer update --ignore-platform-reqs + +release: + make test && make phpstan && make cs && ./vendor/bin/releaser release diff --git a/composer.json b/composer.json index a8b4f23..f2c523b 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,8 @@ "phpstan/phpstan-strict-rules": "^0.10.1", "phpunit/phpunit": "^7.0.0", "squizlabs/php_codesniffer": "^3.4.0", - "woohoolabs/coding-standard": "^1.0.0" + "woohoolabs/coding-standard": "^1.0.0", + "woohoolabs/releaser": "^1.0" }, "provide": { "psr/container-implementation": "1.0.0"