Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
arlo/Makefile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
51 lines (38 sloc)
1.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deps: | |
sudo apt install python3.8 python3-pip nodejs libpython3.8-dev libpq-dev graphicsmagick | |
python3.8 -m pip install poetry | |
sudo npm install -g yarn | |
sudo apt install postgresql | |
# this should only be used for development | |
initdevdb: | |
sudo -u postgres psql -c "create user arlo superuser password 'arlo';" | |
sudo -u postgres psql -c "create database arlo with owner arlo;" | |
install: | |
poetry install --no-dev | |
yarn install | |
yarn --cwd client install | |
yarn --cwd client build | |
install-development: | |
poetry install | |
yarn install | |
yarn --cwd client install | |
resettestdb: | |
FLASK_ENV=test make resetdb | |
resetdb: | |
FLASK_ENV=$${FLASK_ENV:-development} poetry run python -m scripts.resetdb | |
dev-environment: deps initdevdb install-development resetdb | |
typecheck-server: | |
poetry run mypy server scripts | |
format-server: | |
poetry run black . | |
lint-server: | |
poetry run pylint server scripts | |
test-client: | |
yarn --cwd client lint | |
yarn --cwd client test | |
test-server: | |
poetry run pytest -n auto | |
test-server-coverage: | |
poetry run pytest -n auto --cov=. | |
run-dev: | |
./run-dev.sh |