Skip to content

Commit

Permalink
Separate build step in the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukancagatay committed Sep 20, 2024
1 parent 0bdf24d commit 9edb4da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ $(VENV)/bin/activate: requirements.txt
$(PIP) install -U pip
$(PIP) install -r requirements.txt

svc:
build:
docker compose build

svc: build
docker compose up -d
echo "Wait for services to come up..."
sleep 5

test: svc $(VENV)/bin/activate
. $(VENV)/bin/activate
SMTP_PORT=9025 $(PYTHON) test.py
docker compose down --remove-orphans
docker compose down --remove-orphans --volumes

clean:
rm -rf $(VENV)

0 comments on commit 9edb4da

Please sign in to comment.