Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions V2/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
.PHONY: help
help:
@echo "---------------HELP-----------------"
@echo "To install the dependencies type make install"
@echo "To test the project type make test"
@echo "To run the local database type make start-local"
@echo "To run all comands type make ci"
@echo "------------------------------------"

.PHONY: install
install:
@echo "Installing Time Tracker"
@echo "=========================================Installing dependencies Time Tracker========================================="
npm install
pip install --upgrade pip
pip install -r requirements.txt
@echo "Completed! "

.PHONY: test
test: export ENVIRONMENT = test
test: export TEST_DB_CONNECTION = sqlite:///:memory:
test:
@echo "=========================================Lint with flake8========================================="
flake8 . --show-source --statistics
@echo "Completed flake8!"
@echo "=========================================Test with pytest========================================="
python -m pytest -v
@echo "Completed test!"

start-local:
docker compose up
docker compose up

.PHONY: ci
ci: install test