Skip to content

Commit

Permalink
Feature / Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glavvra4 committed Dec 23, 2023
1 parent b20ff65 commit 99f9885
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SHELL := /bin/bash

### override the default docker-compose command using export DOCKER_COMPOSE='docker compose'
DOCKER_COMPOSE ?= docker-compose
DOCKER_COMPOSE ?= docker compose
DOCKER_COMPOSE_FILE ?= docker-compose.yml

PHP_CONTAINER := "php-cli"
Expand All @@ -15,17 +15,29 @@ help: ## Show this help
@printf "\033[33m%s:\033[0m\n" 'Available commands'
@awk 'BEGIN {FS = ":.*?## "}/^[a-zA-Z_-]+:.*?##/{printf "\033[32m%-24s\033[0m %s\n",$$1,$$2}' $(MAKEFILE_LIST)

copy-env:
cp app/.env app/.env.local

build: ## Build Docker image
@$(DC_CMD) build

up: ## Run all services
@$(DC_CMD) up -d

down: ## Run all services
@$(DC_CMD) down --remove-orphans

install-dependency: ## Install all dependencies
@$(DC_CMD) exec $(PHP_CONTAINER) composer install --no-scripts --no-progress

clear-cache: ## Clear Symfony cache
@$(DC_CMD) exec $(PHP_CONTAINER) bin/console c:cl

start: ## Starts the app
@$(DC_CMD) exec $(PHP_CONTAINER) bin/console tg:handle-updates

run-tests:
run-tests: ## Run PHPUnit tests
@$(DC_CMD) exec $(PHP_CONTAINER) composer tests

run-tests-coverage-text:
run-tests-coverage-text: ## Run PHPUnit tests with coverage
@$(DC_CMD) exec $(PHP_CONTAINER) composer tests-coverage-text

0 comments on commit 99f9885

Please sign in to comment.