Skip to content
Merged
Changes from 1 commit
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
Next Next commit
feat: TT-399 Config use makefile to executing tests
  • Loading branch information
gcobena-dev committed Nov 16, 2021
commit 88d9c81b9189ced13c9d43f696fb1cc9b86ee139
29 changes: 26 additions & 3 deletions V2/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
.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 --upgrade pip
pip install -r requirements.txt
@echo "Completed! "

.PHONY: test
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