Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Issue #7: cleaning the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
suv27 committed Oct 8, 2019
1 parent 1922585 commit 5e05bee
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
YARPC=yarpc
TEST_DIR=tests/unit
TEST_DIR=tests
PYTHON?=python3
PIP?=pip
PYTEST?=pytest

.PHONY: create-env
create-env:
rm -rf env
python3 -m pip install --user virtualenv
python3 -m venv env
$(PYTOHN) -m $(PIP) install --user virtualenv

This comment has been minimized.

Copy link
@Gelbpunkt

Gelbpunkt Oct 9, 2019

Collaborator

Did you mean $(PYTHON)?

$(PYTOHN) -m venv env
source env/bin/activate

.PHONY: install
install:
pip install --upgrade pip
pip install -r $(TEST_DIR)/utils/requirements.txt
$(PIP) install --upgrade $(PIP)
$(PIP) install -r $(TEST_DIR)/utils/requirements.txt

.PHONY: test
test: .cleanCoverage
pytest $(TEST_DIR)
$(PYTEST) $(TEST_DIR)/unit

.cleanCoverage:
@echo 'cleaning coverage files ...'
Expand All @@ -24,8 +27,8 @@ test: .cleanCoverage

.PHONY: open-report
open-report: .cleanCoverage
pytest --cov=$(YARPC) --cov-report=term-missing --cov-report=html
open -a "Google Chrome" htmlcov/index.html
$(PYTEST) --cov=$(YARPC) --cov-report=term-missing --cov-report=html
open htmlcov/index.html

.PHONY: help
help:
Expand Down

0 comments on commit 5e05bee

Please sign in to comment.