Skip to content

Commit 5e831e5

Browse files
committed
fix docker usage in Makefile
1 parent e2f53c6 commit 5e831e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
default: help
22

3-
run_docker=docker run -v $(pwd):/app -w /app --rm -it laravel-db-connstring-parser
3+
run_docker=docker run -v $(shell pwd):/app -w /app --rm -it laravel-db-connstring-parser
44

55
help: ## This help message
66
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' -e 's/:.*#/: #/' | column -t -s '##'
@@ -10,22 +10,22 @@ build-docker-image:
1010

1111
install: ## Install dependencies with Composer
1212
@$(MAKE) build-docker-image
13-
@$(run_docker) sleep 1 && composer install
13+
@$(run_docker) composer install
1414

1515
update: ## Update dependencies with Composer
16-
@$(run_docker) sleep 1 && composer update
16+
@$(run_docker) composer update
1717

1818
sh: ## Open a shell in the container
19-
@$(run_docker) sleep 1 && /bin/sh
19+
@$(run_docker) /bin/sh
2020

2121
check: ## Run PHP Insights
22-
@$(run_docker) sleep 1 && ./vendor/bin/phpinsights --config-path=insights.php --no-interaction --min-quality=100 --min-architecture=100 --min-style=100
22+
@$(run_docker) ./vendor/bin/phpinsights --config-path=insights.php --no-interaction --min-quality=100 --min-architecture=100 --min-style=100
2323

2424
check-native: ## Run PHP Insights without Docker
2525
./vendor/bin/phpinsights --config-path=insights.php --no-interaction --min-quality=100 --min-architecture=100 --min-style=100
2626

2727
test: ## Run tests
28-
@$(run_docker) sleep 1 && ./vendor/bin/phpunit -c phpunit.xml
28+
@$(run_docker) ./vendor/bin/phpunit -c phpunit.xml
2929

3030
test-native: ## Run tests without Docker
3131
./vendor/bin/phpunit -c phpunit.xml

0 commit comments

Comments
 (0)