mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
21 lines
727 B
Makefile
21 lines
727 B
Makefile
NAME=redash
|
|
VERSION=`python ./manage.py version`
|
|
FULL_VERSION=$(VERSION)+b$(CIRCLE_BUILD_NUM)
|
|
FILENAME=$(CIRCLE_ARTIFACTS)/$(NAME).$(FULL_VERSION).tar.gz
|
|
|
|
deps:
|
|
cd rd_ui && npm install
|
|
cd rd_ui && npm install grunt-cli bower
|
|
cd rd_ui && bower install
|
|
cd rd_ui && grunt build
|
|
|
|
pack:
|
|
sed -r "s/^__version__ = '([0-9.]*)'/__version__ = '$(FULL_VERSION)'/" redash/__init__.py > redash/__init__.py
|
|
tar -zcv -f $(FILENAME) --exclude=".git*" --exclude="*.pyc" --exclude="*.pyo" --exclude="venv" --exclude="rd_ui/node_modules" --exclude="rd_ui/dist/bower_components" --exclude="rd_ui/app" *
|
|
|
|
upload:
|
|
python bin/upload_version.py $(FULL_VERSION) $(FILENAME)
|
|
|
|
test:
|
|
nosetests --with-coverage --cover-package=redash tests/*.py
|