Skip to content

Commit

Permalink
Merge pull request #155 from loic425/features/makefile
Browse files Browse the repository at this point in the history
Makefile
  • Loading branch information
loic425 committed Mar 15, 2019
2 parents f1e7341 + 0b625b5 commit 68a9a6f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
/behat.yml
/phpspec.yml

Makefile

###> symfony/framework-bundle ###
/.env.*.local
/.env.local
Expand Down
42 changes: 42 additions & 0 deletions Makefile.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
TAGS?=~todo

build-docs:
cd docs && sphinx-build -b html . build -a

install:
composer install --no-interaction
bin/console app:install -n
bin/console sylius:fixtures:load -n
yarn install && yarn build

load-fixtures:
bin/console sylius:fixtures:load default --no-interaction

test-behat:
APP_ENV=test vendor/bin/behat --tags=${TAGS} ${ARGS}

test-behat-without-javascript:
APP_ENV=test vendor/bin/behat --tags=~javascript --tags=${TAGS}

test-behat-with-cli:
APP_ENV=test vendor/bin/behat --tags=cli --tags=${TAGS}

test-infection:
phpdbg -qrr vendor/bin/infection ${ARGS}

test-phpspec:
phpdbg -qrr vendor/bin/phpspec run -n ${ARGS}

test-phpstan::
APP_ENV=dev bin/console cache:clear
APP_ENV=dev bin/console cache:warmup
vendor/bin/phpstan analyse -c phpstan.neon -l 1 src

test-phpunit:
APP_ENV=test vendor/bin/phpunit ${ARGS}

start:
bin/console server:start ${ARGS}

stop:
bin/console server:stop

0 comments on commit 68a9a6f

Please sign in to comment.