Skip to content

Commit

Permalink
ci: fix make up cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Mar 18, 2024
1 parent b14cd51 commit 4458e62
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
test: up-dbs test-unit test-integration

up-dbs: ## Bring up the DBs
docker-compose -f docker-compose.db.yml up -d
docker compose -f docker-compose.db.yml up -d
sleep 5
cd balanced_backend && PYTHONPATH=$PYTHONPATH:`pwd`/.. alembic upgrade head

down-dbs: ## Take down the DBs
docker-compose -f docker-compose.db.yml down
docker compose -f docker-compose.db.yml down

test-unit: ## Run unit tests
python3 -m pytest tests/unit
Expand All @@ -17,22 +17,22 @@ test-integration: ## Run integration tests - Need DB compose up
python3 -m pytest tests/integration

up: ## Bring everything up as containers
docker-compose -f docker-compose.db.yml -f docker-compose.yml up -d
docker compose -f docker-compose.db.yml -f docker-compose.yml up -d

down: ## Take down all the containers
docker-compose -f docker-compose.db.yml -f docker-compose.yml down
docker compose -f docker-compose.db.yml -f docker-compose.yml down

clean:
docker volume rm $(docker volume ls -q)

build: ## Build everything
docker-compose build
docker compose build

ps: ## List all containers and running status
docker-compose -f docker-compose.db.yml -f docker-compose.yml ps
docker compose -f docker-compose.db.yml -f docker-compose.yml ps

postgres-console: ## Start postgres terminal
docker-compose -f docker-compose.db.yml -f docker-compose.yml exec postgres psql -U postgres
docker compose -f docker-compose.db.yml -f docker-compose.yml exec postgres psql -U postgres

help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'

0 comments on commit 4458e62

Please sign in to comment.