2014-01-25 19:24:31 +00:00
|
|
|
NAME=redash
|
2014-02-09 14:46:32 +00:00
|
|
|
VERSION=`python ./manage.py version`
|
|
|
|
FULL_VERSION=$(VERSION)+b$(CIRCLE_BUILD_NUM)
|
2014-01-26 14:30:16 +00:00
|
|
|
FILENAME=$(CIRCLE_ARTIFACTS)/$(NAME).$(FULL_VERSION).tar.gz
|
2014-01-25 19:24:31 +00:00
|
|
|
|
|
|
|
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:
|
2014-02-05 07:48:11 +00:00
|
|
|
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" *
|
2014-01-26 14:30:16 +00:00
|
|
|
|
|
|
|
upload:
|
|
|
|
python bin/upload_version.py $(FULL_VERSION) $(FILENAME)
|
2014-01-31 17:59:01 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
nosetests --with-coverage --cover-package=redash tests/*.py
|