update Makefile

This commit is contained in:
Sam 2021-09-04 19:24:39 +02:00
parent a09c320093
commit aa102e7cfe

View File

@ -9,7 +9,7 @@ make-p:
build-client: lint-client build-client: lint-client
cd fittrackee_client && $(NPM) build cd fittrackee_client && $(NPM) build
check-all: lint-all type-check test-python check-all: lint-all type-check test-python test-client
clean: clean:
rm -rf .mypy_cache rm -rf .mypy_cache
@ -98,8 +98,7 @@ install-client:
cd fittrackee_client && $(NPM) install --prod cd fittrackee_client && $(NPM) install --prod
install-client-dev: install-client-dev:
# https://github.com/facebook/create-react-app/issues/8688 cd fittrackee_client && $(NPM) install
cd fittrackee_client && $(NPM) install && sed -i '/process.env.CI/ s/isInteractive [|]*//' node_modules/react-scripts/scripts/start.js
install-dev: install-client-dev install-python-dev install-dev: install-client-dev install-python-dev
@ -154,7 +153,7 @@ serve-dev:
$(MAKE) P="serve-client serve-python-dev" make-p $(MAKE) P="serve-client serve-python-dev" make-p
serve-client: serve-client:
cd fittrackee_client && $(NPM) start cd fittrackee_client && $(NPM) serve
serve-python: serve-python:
echo 'Running on http://$(HOST):$(PORT)' echo 'Running on http://$(HOST):$(PORT)'
@ -173,6 +172,9 @@ test-e2e-client: init-db
test-python: test-python:
$(PYTEST) fittrackee --cov-config .coveragerc --cov=fittrackee --cov-report term-missing $(PYTEST_ARGS) $(PYTEST) fittrackee --cov-config .coveragerc --cov=fittrackee --cov-report term-missing $(PYTEST_ARGS)
test-client:
cd fittrackee_client && $(NPM) test:unit
type-check: type-check:
echo 'Running mypy...' echo 'Running mypy...'
$(MYPY) fittrackee $(MYPY) fittrackee