redash/Makefile

23 lines
838 B
Makefile
Raw Normal View History

2014-01-25 19:24:31 +00:00
NAME=redash
VERSION=`python ./manage.py version`
FULL_VERSION=$(VERSION)+b$(CIRCLE_BUILD_NUM)
2014-05-04 11:37:20 +00:00
# VERSION gets evaluated every time it's referenced, therefore we need to use VERSION here instead of FULL_VERSION.
FILENAME=$(CIRCLE_ARTIFACTS)/$(NAME).$(VERSION).tar.gz
2014-01-25 19:24:31 +00:00
deps:
cd rd_ui && npm install
2014-07-31 14:32:14 +00:00
cd rd_ui && npm install -g bower grunt-cli
2014-01-25 19:24:31 +00:00
cd rd_ui && bower install
cd rd_ui && grunt build
pack:
2014-05-04 11:02:20 +00:00
sed -ri "s/^__version__ = '([0-9.]*)'/__version__ = '$(FULL_VERSION)'/" 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:
2014-05-04 11:37:20 +00:00
python bin/upload_version.py $(VERSION) $(FILENAME)
2014-01-31 17:59:01 +00:00
test:
nosetests --with-coverage --cover-package=redash tests/*.py
#cd rd_ui && grunt test