-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
20 lines (15 loc) · 955 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: help
SHELL=/bin/bash
build:
rm -r abstract_scorm_xblock/dist/*; cd abstract_scorm_xblock/ && python setup.py sdist bdist_wheel
PYPI_SERVER ?= testpypi
release-upload: build
@ if [ "$(PYPI_SERVER)" == "testpypi" ]; then echo -e 'To release to the production pypi index run with\nmake release PYPI_SERVER=pypi'; fi
twine upload -r $(PYPI_SERVER) abstract_scorm_xblock/dist/*
test:
cd derex_project && ddc-project run --rm lms python manage.py lms test abstract_scorm_xblock --keepdb
coverage:
cd derex_project && ddc-project run -e COVERAGE_RCFILE=../derex.requirements/abstract_scorm_xblock/.coveragerc --rm lms sh -c "coverage run manage.py lms test abstract_scorm_xblock --keepdb && coverage report -m && coverage html"
help: ## display this help message
@echo "Please use \`make <target>' where <target> is one of"
@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}'