Skip to content

Commit

Permalink
Add releaser script
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Jan 11, 2019
1 parent aeb1daa commit e42cf99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
17 changes: 10 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e42cf99

Please sign in to comment.